help-octave
[Top][All Lists]
Advanced

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

Re: content of binary files stored by save


From: David Bateman
Subject: Re: content of binary files stored by save
Date: Mon, 22 Sep 2008 13:56:48 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080725)

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                                address@hidden
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



reply via email to

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