正在加载图片...
MAT-File format Figure 6 illustrates the format of the Array Flags subelement. (For sparse matrices, bytes 5 through 8 are used to store the maximum number of nonzero elements in the matrix. See"Sparse Array Data Element Format"on page-18 for more information. Figure 6: Array Flags Format Byt Undefined Flags Cl ass Un i ned Global Flags. This field contains three, single-bit flags that indicate whether the numeric data is complex, global, or logical. If the complex bit is set, the data element includes an imaginary part (pi ) If the global bit is set, MATLAB loads the data element as a global variable in the base workspace. If the logical bit is set, it indicates the array is used for logical indexing Class. This field contains a value that identifies the matlab array type(class) represented by the data element. Table 3 lists the MATLAB array types with the values you use to specify them. The table also includes symbols that are used to represent the matlab array type in the examples in this document Note The value of the Class field identifies the matlab data type. The value of the Data Type field in the data element tag identifies the data type used to store the data in the MAT-file. The MAT-file data types are listed in Table 1. The value of the Class and the Data Type fields do not need to be the same; for more information, see"Data Compression"on page-15MAT-File Format 12 Figure 6 illustrates the format of the Array Flags subelement. (For sparse matrices, bytes 5 through 8 are used to store the maximum number of nonzero elements in the matrix. See “Sparse Array Data Element Format” on page -18 for more information.) Figure 6: Array Flags Format Flags. This field contains three, single-bit flags that indicate whether the numeric data is complex, global, or logical. If the complex bit is set, the data element includes an imaginary part (pi). If the global bit is set, MATLAB loads the data element as a global variable in the base workspace. If the logical bit is set, it indicates the array is used for logical indexing. Class. This field contains a value that identifies the MATLAB array type (class) represented by the data element. Table 3 lists the MATLAB array types with the values you use to specify them. The table also includes symbols that are used to represent the MATLAB array type in the examples in this document. Note The value of the Class field identifies the MATLAB data type. The value of the Data Type field in the data element tag identifies the data type used to store the data in the MAT-file. The MAT-file data types are listed in Table 1. The value of the Class and the Data Type fields do not need to be the same; for more information, see “Data Compression” on page -15. Undefined Bytes 1 2 3 4 5 6 7 8 Flags Class U n d e f i n e d Undefined Complex Global Logical
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有