13.07.2015 Views

MAT-File Format - SERC

MAT-File Format - SERC

MAT-File Format - SERC

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1 <strong>MAT</strong>-<strong>File</strong> <strong>Format</strong>Sparse Array Data Element <strong>Format</strong>A <strong>MAT</strong>-file data element representing a <strong>MAT</strong>LAB sparse array is composed ofsix subelements and one optional subelement. Table 1-4 lists the subelementsin the order in which they appear in the data element. The table lists the valuesof the Data Type and Number of Bytes fields of the tag for each subelement.Table 1-4: Sparse Array Subelements with Tag DataSubelement Data Type Number of BytesArray Flags miUINT32 2*size-of-Data-Type (8 bytes)Dimensions Array miINT32 number-of-dimensions*size-of-Data-Typewhere number-of-dimensions can be 0, 1 or 2.Array Name miINT8 number-of-characters*size-of-Data-TypeRow Index (ir) miINT32 nzmax*size-of-Data-Type(The nzmax value is stored in Array Flags.)Column Index (jc) miINT32 (N+1)*sizeof(int32)where N is the second element of the Dimensionsarray subelement.Real part (pr)Imaginary part (pi)(Optional)Any numericdata typeAny numericdata typenumber-of-nonzero-values*size-of-Data-Typenumber-of-nonzero-values*size-of-Data-TypeArray Flags SubelementThis subelement identifies the <strong>MAT</strong>LAB array type (class) represented by thedata element and provides other information about the array. The Array Flagssubelement is common to all array types.1-22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!