help-octave
[Top][All Lists]
Advanced

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

Re: load


From: Geraint Paul Bevan
Subject: Re: load
Date: Thu, 23 Oct 2003 13:29:01 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

charo wrote:
| Is it possible to load just one variable from a binary octave file?
| Thanks,
|
| Rosario

Yes, just append the name of the variable to the end of the load command:


octave:1> a = 1; b = 2;
octave:2> whos

*** local user variables:

prot  type                       rows   cols  name
====  ====                       ====   ====  ====
~ rwd  scalar                        1      1  a
~ rwd  scalar                        1      1  b

octave:3> save -binary data
octave:4> clear
octave:5> whos
octave:6> load data a
octave:7> whos

*** local user variables:

prot  type                       rows   cols  name
====  ====                       ====   ====  ====
~ rwd  scalar                        1      1  a

octave:8>


- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iEYEARECAAYFAj+XyYwACgkQcXV3N50QmNMyzgCfepcIBy82llSnkdDjmbAJvI/F
boMAn01P0F/GTZOyk2hXnkc/H9FPG2XM
=7xd/
-----END PGP SIGNATURE-----



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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