Table 1-3, MATLAB Array Types (Classes)
MATLAB Array Type (Class) Value Symbol
Cell array 1 mxCELL_CLASS
Structure 2 mxSTRUCT_CLASS
Object 3 mxOBJECT_CLASS
Character array 4 mxCHAR_CLASS
Sparse array 5 mxSPARSE_CLASS (Use of this
symbol is not recommended. Sparse
array is no longer classied
MATLAB class. To indicate the
sparse array type, use the numeric
value 5.)
Double precision array 6 mxDOUBLE_CLASS
Single precision array 7 mxSINGLE_CLASS
8-bit, signed integer 8 mxINT8_CLASS
8-bit, unsigned integer 9 mxUINT8_CLASS
16-bit, signed integer 10 mxINT16_CLASS
16-bit, unsigned integer 11 mxUINT16_CLASS
32-bit, signed integer 12 mxINT32_CLASS
32-bit, unsigned integer 13 mxUINT32_CLASS
64-bit, signed integer 14 mxINT64_CLASS
64-bit, unsigned integer 15 mxUINT64_CLASS
For numeric arrays, Class can contain any of the numeric array types: mxDOUBLE_CLASS,
mxSINGLE_CLASS, mxINT8_CLASS, mxUINT8_CLASS, mxINT16_CLASS, mxUINT16_CLASS,
mxINT32_CLASS, or mxUINT32_CLASS.
For character arrays, Class contains mxCHAR_CLASS.
Dimensions Array Subelement
This subelement species the size of each dimension of an n-dimensional array in an n-sized array of
32-bit values (miINT32). All numeric arrays have at least two dimensions. The Dimensions Array
subelement is common to all MATLAB array types.
For example, if a data element represents a 2-by-3-by-2 MATLAB array, the Dimensions Array
subelement would contain three values: 2, 3, and 2.
Note To calculate the number of dimensions in an array, divide the value stored in the Number of
Bytes eld in the Dimensions Array subelement tag by 4, the number of bytes in the data type
(miINT32) used in the subelement.
Array Name Subelement
This subelement species the name assigned to the array, as an array of signed, 8-bit values
(miINT8). This subelement is common to all array types.
1
MAT-File Format
1-10