Skip to content

GetSmallDataElement

  GetSmallDataElement returns a small data element from a MAT-file

  Example:
  [N, TYPE, VALUES]=GetSmallDataElement(FH, FILEFORMAT)
        FH is the file handle from fopen
        FILEFORMAT is 'ieee-le' for a little-endian MAT-file, 'ieee-be' for
        big-endian.
        N is the number of values in the data element
        TYPE is the data class
        VALUES contains the returned data

  Author: Malcolm Lidierth 09/06
  Revised: 21/09/06 Now works with big-endian files on Windows
  Copyright © King’s College London 2006