Using the C++ Math Library | ![]() ![]() |
Dimensions and Subscripts in MATLAB
There are three types of data in MATLAB: numeric arrays, cell arrays, and structures (objects are just a special kind of structure). Therefore, there are three types of indexing, one for each type of data:
()
{}
color
Both standard indexing and cell array indexing take numeric arguments, one argument for each dimension of the array being indexed into, while structure indexing uses only the name of the structure field.
![]() | Terminology | Dimensions and Subscripts in the MATLAB C++ Math Library | ![]() |