MAT-File Format - SERC
MAT-File Format - SERC MAT-File Format - SERC
1 MAT-File FormatLevel 5 MAT-File FormatLevel 5 MAT-files are made up of a 128-byte header followed by one or moredata elements. Each data element is composed of an 8-byte tag followed by thedata in the element. The tag specifies the number of bytes in the data elementand how these bytes should be interpreted; that is, should the bytes be read as16-bit values, 32-bit values, floating point values or some other data type.By using tags, the Level 5 MAT-file format provides quick access to individualdata elements within a MAT-file. You can move through a MAT-file by findinga tag and then skipping ahead the specified number of bytes until the next tag.“MATLAB Level 5 MAT-File Format” on page 1-5 graphically illustrates thisMAT-file format. The sections that follow provide more details about theseMAT-file elements.This section covers the following topics:• “MATLAB Level 5 MAT-File Format” on page 1-5• “MAT-File Header Format” on page 1-6• “Data Element Format” on page 1-8• “Data Compression” on page 1-121-4
Level 5 MAT-File FormatFigure 1-1: MATLAB Level 5 MAT-File FormatBytes 1 2 3 4 5 6 7 8Descriptive text (116 bytes)MAT-File Header (128 bytes)Subsys Data OffsetSubsys Data OffsetVersionEndian IndicatorData TypeNumber of BytesData (variable size) or subelementsData TypeNumber of BytesData (variable size) or subelementsData TypeNumber of BytesData (variable size) or subelementsData Element Data ElementData ElementRepeat Tagged Data Elements Until End-of-File1-5
- 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 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 38 and 39: 1 MAT-File FormatClass. This field
- 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
Level 5 <strong>MAT</strong>-<strong>File</strong> <strong>Format</strong>Figure 1-1: <strong>MAT</strong>LAB Level 5 <strong>MAT</strong>-<strong>File</strong> <strong>Format</strong>Bytes 1 2 3 4 5 6 7 8Descriptive text (116 bytes)<strong>MAT</strong>-<strong>File</strong> Header (128 bytes)Subsys Data OffsetSubsys Data OffsetVersionEndian IndicatorData TypeNumber of BytesData (variable size) or subelementsData TypeNumber of BytesData (variable size) or subelementsData TypeNumber of BytesData (variable size) or subelementsData Element Data ElementData ElementRepeat Tagged Data Elements Until End-of-<strong>File</strong>1-5