[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can 'octave' load raw binary files ?
From: |
Sergei Steshenko |
Subject: |
Re: can 'octave' load raw binary files ? |
Date: |
Thu, 17 Apr 2008 04:43:27 -0700 (PDT) |
--- address@hidden wrote:
> Quoting Sergei Steshenko <address@hidden>:
> > 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