正在加载图片...
MAT-File format Table 1: MAT-File Data Types MAT-File Data Type Value Symbol 64-bit, uni gned mi uInt64 14 mi matRIX (For more information about this data MATLAB Array Data Element Formats" on page.) Number of Bytes. The Number of Bytes field is a 32-bit value that specifies the number of bytes of data in the element. This value does not include the eight bytes of the data element's tag The data immediately follows the tag. The data must be aligned on 64-bit boundaries. When writing a MAT-file, if the amount of data in a data element falls short of a 64-bit boundary, you must add bytes of padding to make sure the tag of the next data element falls on a 64-bit boundary. Likewise, wher reading data from a MAT-file, be sure to account for these padding bytes Programming Note For data elements representing MATLAB arrays, (type mi MATRIX), the value of the Number of Bytes field includes padding bytes in the total. For all other MAT-file data types, the value of the Number of Bytes field does not include padding bytes Example Data Element For example, Figure 3 illustrates a data element representing an array of six 32-bit, unsigned integers: 1, 2, 3, 4, 5, 6. In the figure, the Data Type field contains the value from Table 1 that specifies unsigned, 32-bit integers (mi UI NT32). The Number of Bytes field in the data element tag contains the number of data values multiplied by the number of bytes used to representMAT-File Format 8 Number of Bytes. The Number of Bytes field is a 32-bit value that specifies the number of bytes of data in the element. This value does not include the eight bytes of the data element’s tag. Data The data immediately follows the tag. The data must be aligned on 64-bit boundaries. When writing a MAT-file, if the amount of data in a data element falls short of a 64-bit boundary, you must add bytes of padding to make sure the tag of the next data element falls on a 64-bit boundary. Likewise, when reading data from a MAT-file, be sure to account for these padding bytes. Programming Note For data elements representing MATLAB arrays, (type miMATRIX), the value of the Number of Bytes field includes padding bytes in the total. For all other MAT-file data types, the value of the Number of Bytes field does not include padding bytes. Example Data Element For example, Figure 3 illustrates a data element representing an array of six 32-bit, unsigned integers: 1, 2, 3, 4, 5, 6. In the figure, the Data Type field contains the value from Table 1 that specifies unsigned, 32-bit integers (miUINT32). The Number of Bytes field in the data element tag contains the number of data values multiplied by the number of bytes used to represent 64-bit, unsigned 13 miUINT64 MATLAB array 14 miMATRIX (For more information about this data type, see “Version 5 MATLAB Array Data Element Formats” on page -10.) Table 1: MAT-File Data Types MAT-File Data Type Value Symbol
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有