正在加载图片...
Version 5 MATLAB Array Data Element Formats Each mi MATRI X data element representing the different types of MATLAB arrays each has a specific set of subelements. Some of these subelements are common to all MATLAB arrays. Others subelements are unique to a particular type of array. The following sections detail the subelements for each MATLAB array type Numeric Array and character array data element Formats A MAT-file data element representing a matlab numeric array or character array is composed of four subelements and one optional subelement. Table 2 lists the subelements in the order in which they appear in the data element. The table also includes the values of the Data Type and Number of Bytes fields ou would use in the tag of each subelement. For an example, see"Examples of Numeric Array Data Elements"on page-15 Table 2: Numeric and Character Array Subelements with Tag Data Subelement Number of Bytes mi UI NT32 2*size-of-Dat a-Type (8 bytes) Dimensions Array number-of-di mensi ons*si ze-of-Dat a-Type CTo learn how to determine the number of dimensions, see"Dimensions Array Subelement on page-13) Array Name number-of-characters*si ze-of-Dat a-Type Real part (pr) Any of the numeric number-of-val ues*size-of-Data-Type ta types. Imaginary part(pi) Any of the numeric number-of-val ues*size-of-Data-Type (Optional) data types This subelement identifies the MATLAB array type(class)represented by the data element and provides other information about the array. The Array Flags subelement is common to all array typeVersion 5 MATLAB Array Data Element Formats 11 Each miMATRIX data element representing the different types of MATLAB arrays each has a specific set of subelements. Some of these subelements are common to all MATLAB arrays. Others subelements are unique to a particular type of array. The following sections detail the subelements for each MATLAB array type. Numeric Array and Character Array Data Element Formats A MAT-file data element representing a MATLAB numeric array or character array is composed of four subelements and one optional subelement. Table 2 lists the subelements in the order in which they appear in the data element. The table also includes the values of the Data Type and Number of Bytes fields you would use in the tag of each subelement. For an example, see “Examples of Numeric Array Data Elements” on page -15. Array Flags Subelement This subelement identifies the MATLAB array type (class) represented by the data element and provides other information about the array. The Array Flags subelement is common to all array types. Table 2: Numeric and Character Array Subelements with Tag Data Subelement Data Type Number of Bytes Array Flags miUINT32 2*size-of-Data-Type (8 bytes) Dimensions Array miINT32 number-of-dimensions*size-of-Data-Type (To learn how to determine the number of dimensions, see “Dimensions Array Subelement” on page -13.) Array Name miINT8 number-of-characters*size-of-Data-Type Real part (pr) Any of the numeric data types. number-of-values*size-of-Data-Type Imaginary part (pi) (Optional) Any of the numeric data types. number-of-values*size-of-Data-Type
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有