help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I save struct data?


From: Joao Cardoso
Subject: Re: How can I save struct data?
Date: Wed, 21 Apr 1999 17:03:43 +0100

Daniel Heiserer wrote:
> 
> Joao Cardoso wrote:
> >
> > Daniel Heiserer wrote:
> > >
> > > Akira Nishimura wrote:
> > > >
> > > > I'm using Octave-2.0.13 and 2.0.14.
> >
> > ...
> >
> > > saving octave data as a mat-file is only supported for matlab-4 files.
> > > Matlab 4 had no structs and no cells. This is supported by matlab 5
> > > which's
> > > binary structure is different and not published.
> > >
> > > They are shipping libraries with them for reading and writing these
> > > files. But because of OPEN-SOURCE it makes no sense to include these.
> > > Maybe you could ask the MATHWORKS for revealing it's data-strucure.
> > > If somebody is interested we could try to figure out what they
> > > are doing.
> >
> > and if we do can we use that information?
> 
> We "probably" know how the format is.
> 
> ==> see below
> 
> >
> > > We would need some m-files running on matlab and octave
> > > and also some stuff to decode the binaries. That is probably not
> > > a big deal.
> > > Somebody interested?

...

> >
> > bash-2.01$ od -x foo.mat
> > 0000000  414d 4c54 4241 3520 302e 4d20 5441 662d
> > 0000020  6c69 2c65 5020 616c 6674 726f 3a6d 4120
> > 0000040  504c 4148 202c 7243 6165 6574 2064 6e6f
> > 0000060  203a 6557 2064 7041 2072 3132
> ..............
> 
> Why so complicated?
...

I don't have the time; perhaps others have, but don't have Matlab, so
supplying the file details would be a start. And supplying a file will
revail the overall structure just by inspection.

But I agree that my example was too complicated, and more, probably
system dependant, as it was done on a 64 bit alpha.

My question, however, was not answered: can we use a proprietary format
by reverse-engineering it?

Joao

-- 
Joao Cardoso                |   e-mail: address@hidden
INESC, R. Jose Falcao 110   |   tel:    + 351 2 2094322
4050 Porto, Portugal        |   fax:    + 351 2 2008487



reply via email to

[Prev in Thread] Current Thread [Next in Thread]