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.

Level 5 <strong>MAT</strong>LAB Array Data Element <strong>Format</strong>sArray Name SubelementThis subelement specifies the name assigned to the array. This subelement iscommon to all array types. For more information, see “Array NameSubelement” on page 1-18.Cells SubelementThis subelement contains the value stored in a cell. These values are <strong>MAT</strong>LABarrays, represented using the mi<strong>MAT</strong>RIX format specific to the array type:numeric array, sparse array, structure, object or other cell array. See theappropriate section in this document for details about the <strong>MAT</strong>-filerepresentation of a each of these array types. Cells are written in column-majororder.Example Cell ArrayFigure 1-12 illustrates the <strong>MAT</strong>-file data element format of this cell array:A = [ 1 2 3 ; 4 5 6 ]A =1 2 34 5 6B = [ 7 8 9 ; 10 11 12 ]B =7 8 910 11 12C = { A, B }C =[2x3 double] [2x3 double]In the figure, note:• The data element contains five subelements, the three common subelements;Array Flags, Dimensions and Array Name; and two cell subelements.• The value of the Number of Bytes field in the data element tag includes allthe subelements, but not the eight bytes of the tag itself.• Each cell subelement is an mi<strong>MAT</strong>RIX type. In the example, each cell containsa numeric array. For more information about the format of these elements,1-27

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

Saved successfully!

Ooh no, something went wrong!