MAT-File Format - SERC
MAT-File Format - SERC MAT-File Format - SERC
1 MAT-File FormatClass. This field contains a value that identifies the MATLAB data typerepresented by the data element. For objects, the Class byte has the value 3(mxOBJECT_CLASS). For more information, see “Class” on page 1-16.Dimensions Array SubelementThis subelement specifies the size of each dimension of the array. Thissubelement is common to all array types. For more information, see“Dimensions Array Subelement” on page 1-17.Array Name SubelementThis subelement specifies the name assigned to the array. This subelement iscommon to all array types. For more information, see “Array NameSubelement” on page 1-18.Class Name SubelementThis subelement specifies the name assigned to the object class. Thissubelement is an array of 8-bit characters (miINT8).Field Name Length SubelementThis subelement specifies the maximum length of a Field Name. See “FieldName Length Subelement” on page 1-30 for more information.Field Names SubelementThis subelement specifies the name of each field in the structure. See “FieldNames Subelement” on page 1-30 for more information.Fields SubelementThis subelement contains the value stored in a field. See “Fields Subelement”on page 1-30 for more information.ExampleFigure 1-16 illustrates how the MATLAB object in this example is representedin a MAT-file.X = inline(`t^2');The figure only shows the first four subelements of the object. For an examplethat shows the remaining subelements, see “Example” on page 1-31.1-34
Level 5 MATLAB Array Data Element FormatsIn the figure, note:• The Array Flag Class byte is set to mxOBJECT_CLASS.• The data element includes the Class Name subelement.Figure 1-16: Example Object MAT-file Data ElementBytes 1 2 3 4 5 6 7 8Undefinedi1miMATRIXmiUINT32 80miINT32mxOBJECT_CLASS656U n d e f i n e d1 18ArrayFlagsDimensionsArraymiINT8 X PaddingArrayNamemiINT8 6Classn l i n e Padding NameThe remaining elements are the sameas for a structure.1-35
- Page 1 and 2: MATLAB®The Language of Technical C
- Page 3: Revision History:June 1999 Online o
- Page 6 and 7: 1 MAT-File FormatIntroductionThis d
- Page 8 and 9: 1 MAT-File FormatLevel 5 MAT-File F
- Page 10 and 11: 1 MAT-File FormatMAT-File Header Fo
- Page 12 and 13: 1 MAT-File FormatData Element Forma
- Page 14 and 15: 1 MAT-File FormatFor character data
- Page 17 and 18: Level 5 MAT-File FormatEach variabl
- Page 19 and 20: Level 5 MATLAB Array Data Element F
- Page 21 and 22: Level 5 MATLAB Array Data Element F
- Page 23 and 24: Level 5 MATLAB Array Data Element F
- Page 25 and 26: Level 5 MATLAB Array Data Element F
- Page 27 and 28: Level 5 MATLAB Array Data Element F
- Page 29: Level 5 MATLAB Array Data Element F
- Page 32 and 33: 1 MAT-File Formatsee “Numeric Arr
- Page 34 and 35: 1 MAT-File FormatDimensions Array S
- Page 36 and 37: 1 MAT-File FormatFigure 1-14: Examp
- Page 40 and 41: 1 MAT-File FormatLevel 4 MAT-File F
- Page 42 and 43: 1 MAT-File FormatTable 1-8: Level 4
- Page 44 and 45: 1 MAT-File FormatAgain, we strongly
- Page 46 and 47: IndexHheaderdefined 1-4flag fields
- Page 48: IndexIndex-4
1 <strong>MAT</strong>-<strong>File</strong> <strong>Format</strong>Class. This field contains a value that identifies the <strong>MAT</strong>LAB data typerepresented by the data element. For objects, the Class byte has the value 3(mxOBJECT_CLASS). For more information, see “Class” on page 1-16.Dimensions Array SubelementThis subelement specifies the size of each dimension of the array. Thissubelement is common to all array types. For more information, see“Dimensions Array Subelement” on page 1-17.Array Name SubelementThis subelement specifies the name assigned to the array. This subelement iscommon to all array types. For more information, see “Array NameSubelement” on page 1-18.Class Name SubelementThis subelement specifies the name assigned to the object class. Thissubelement is an array of 8-bit characters (miINT8).Field Name Length SubelementThis subelement specifies the maximum length of a Field Name. See “FieldName Length Subelement” on page 1-30 for more information.Field Names SubelementThis subelement specifies the name of each field in the structure. See “FieldNames Subelement” on page 1-30 for more information.Fields SubelementThis subelement contains the value stored in a field. See “Fields Subelement”on page 1-30 for more information.ExampleFigure 1-16 illustrates how the <strong>MAT</strong>LAB object in this example is representedin a <strong>MAT</strong>-file.X = inline(`t^2');The figure only shows the first four subelements of the object. For an examplethat shows the remaining subelements, see “Example” on page 1-31.1-34