can 'octave' load raw binary files ?
Sergei Steshenko
sergstesh at yahoo.com
Thu Apr 17 06:43:27 CDT 2008
--- soren at hauberg.org wrote:
> Quoting Sergei Steshenko <sergstesh at yahoo.com>:
> > I read output of "help load" and it looks like 'octave' cannot load
> > raw binary files, I mean,
> > the files containing just sequence (memory dump) of, say, double
> > precision FP numbers - the
> > sequence can be created by, say, 'fwrite' called on an array of doubles.
>
> Can't you simply load them using 'fread' ? The 'load' command have no
> way of determining how data is stored in some binary blob, since such
> a file doesn't have any meta-data.
>
> Søren
>
>
I most probably can - didn't think about 'fread' in 'octave', though I'm using it in "C"
for the same purpose.
Regarding 'load' - you comment is correct, but I was thinking of additional formats like
'native_double, 'native_float', etc.
Thanks for the tip,
Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Help-octave
mailing list