正在加载图片...
Version 5 mat-file format each value. Note that this value does not include the eight bytes in the data element tag Figure 3: Example MAT-File Data Element Byte (mi UINT32 Dat a 6 Compressed Data Element Format If the data element contains between one and four bytes of data, MATLAB saves storage space by storing the data in a compressed data element format. In this format, the Data Type and Number of Bytes fields are stored as 16-bit values, freeing four bytes in the tag in which to store the data. Figure 4 illustrates this format Figure 4: Compressed Data Element Format Byte Data Type DATA Programming Note When reading a MAT-file, you can tell if you are processing a compressed data element by comparing the value of the first two bytes of the tag with the value zero(O). If these two bytes are not zero, the tag uses the compressed format. When writing a MAT-file, use of the compressed data element format is optionalVersion 5 MAT-File Format 9 each value. Note that this value does not include the eight bytes in the data element tag. Figure 3: Example MAT-File Data Element Compressed Data Element Format If the data element contains between one and four bytes of data, MATLAB saves storage space by storing the data in a compressed data element format. In this format, the Data Type and Number of Bytes fields are stored as 16-bit values, freeing four bytes in the tag in which to store the data. Figure 4 illustrates this format. Figure 4: Compressed Data Element Format Programming Note When reading a MAT-file, you can tell if you are processing a compressed data element by comparing the value of the first two bytes of the tag with the value zero (0). If these two bytes are not zero, the tag uses the compressed format. When writing a MAT-file, use of the compressed data element format is optional. miUINT32 24 Bytes 1 2 3 4 5 6 7 8 Tag Data Data Type Number of Bytes 1 2 3 4 5 6 Data Type D A T A Bytes 1 2 7 3 4 5 6 8 Number of Bytes
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有