正在加载图片...
MAT-File format For example, if a data element represents a 2-by-3-by-2 MATLAB array, the Dimensions Array subelement would contain three values: 2, 3, and 2. Programming Note To calculate the number of dimensions in an array, divide the value stored in the Number of Bytes field in the Dimensions Array subelement tag by 4, the number of bytes in the data type(mi I NT32) used in the subelement Array Name Subelement This subelement specifies the name assigned to the array, as an array of signed, 8-bit values (mi I NT8). This subelement is common to all array types Real Part(pr) Subelement This subelement contains the numeric data in the MaTlAB array. If the array contains complex numbers(the complex bit in the array Flags is set), this is the real part of the number The data type of the values can be any of the numeric data types listed in Table 1, MAT-File Data Types, on page-7 Imaginary Part(pi) Subelement This subelement contains the imaginary part of the numeric data in the MATLAB array. This subelement is only present if one or more of the numeric values in the MATlAB array is a complex number (if the complex bit is set in Array Flags). The data type of the values can be any of the numeric data types listed in Table 1, MAT-File Data Types, on page-7 Programming Note When reading a MAT-file, check the value of the Data Type field in the tag of Real Part and Imaginary Part subelements to identify the data type used to store data. Also note that MATLAB reads and writes these values in column-major orderMAT-File Format 14 For example, if a data element represents a 2-by-3-by-2 MATLAB array, the Dimensions Array subelement would contain three values: 2, 3, and 2. Programming Note To calculate the number of dimensions in an array, divide the value stored in the Number of Bytes field in the Dimensions Array subelement tag by 4, the number of bytes in the data type (miINT32) used in the subelement. Array Name Subelement This subelement specifies the name assigned to the array, as an array of signed, 8-bit values (miINT8). This subelement is common to all array types. Real Part (pr) Subelement This subelement contains the numeric data in the MATLAB array. If the array contains complex numbers (the complex bit in the Array Flags is set), this is the real part of the number. The data type of the values can be any of the numeric data types listed in Table 1, MAT-File Data Types, on page -7. Imaginary Part (pi) Subelement This subelement contains the imaginary part of the numeric data in the MATLAB array. This subelement is only present if one or more of the numeric values in the MATLAB array is a complex number (if the complex bit is set in Array Flags). The data type of the values can be any of the numeric data types listed in Table 1, MAT-File Data Types, on page -7. Programming Note When reading a MAT-file, check the value of the Data Type field in the tag of Real Part and Imaginary Part subelements to identify the data type used to store data. Also note that MATLAB reads and writes these values in column-major order
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有