[vsipl++] Matlab IO
Jules Bergmann
jules at codesourcery.com
Wed Jun 21 11:39:23 UTC 2006
Assem Salama wrote:
> Jules,
> I don't understand. The endian field is a string, not a 16 bit value...
> I tried as a test to switch the endian field and swap the data and it
> works fine...
>
Assem,
From the matlab file format description, the "Endian Indicator":
"Contains the two characters, M and I, written to the
MAT-file in this order, as a 16-bit value. If, when read
from the MAT-file as a 16-bit value, the characters appear
in reversed order (IM rather than MI), it indicates that the
program reading the MAT-file must perform
byte-swapping to interpret the data in the MAT-file
correctly."
-- Jules
--
Jules Bergmann
CodeSourcery
jules at codesourcery.com
(650) 331-3385 x705
More information about the vsipl++
mailing list