content of binary files stored by save
David Bateman
David.Bateman at motorola.com
Mon Sep 22 06:56:48 CDT 2008
David Bateman wrote:
> Levente Torok wrote:
>> Hi all,
>>
>> Does anybody know if file content can be listed?
>> I mean, once I saved a file with "save" command, I want to know what
>> variables are stored in it.
>> For example:
>>
>> a=2;
>> b=4;
>> save -binary context.dat
>>
>> restarting octave
>>
>> load context.dat
>>
>>
>> I am particularily interested of this because loading from binary
>> format is extremely
>> much faster so it is perfereble to use it.
>> However in a case of mine it is a bit larger. Which is either an
>> error or I saved something that I didn't want to save.
>>
>> Lev
>>
>>
>
> If its large does the "-z" flag to save help?
>
> As for listing the contents, matlab has the "whos -file <file.mat>"
> command that Octave does yet implement. I took a look at adding this a
> few months ago, but if I remember correctly it wasn't clear how to do
> it cleanly. Till then Octave implements "load -list <file.mat>" which
> is similar that lists the contents without loading the variables, but
> doesn't give any details like "whos -file <file.mat>" does..
>
> Regards
> David
>
>
>
Sorry you can also do "load -list -v <file.mat>", though that doesn't
appear t be adapted to NDArrays.
D.
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Help-octave
mailing list