[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: save;load question
From: |
D Goel |
Subject: |
Re: save;load question |
Date: |
Fri, 17 Dec 2004 23:58:43 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) |
Geraint Paul Bevan <address@hidden> writes:
>
> octave> M = [ 1, 2 ; 4 , 3 ]
>
> M =
>
> ~ 1 2
> ~ 4 3
>
> octave> save ( "file.dat", "M" )
> octave> data = load ( "file.dat" )
>
> data =
> {
> ~ M =
>
> ~ 1 2
> ~ 4 3
>
> }
>
> octave> for var = data; endfor
> octave> var
>
> var =
>
> ~ 1 2
> ~ 4 3
Geraint
Awesome example. Thanks very much. This will solve my problem.
BTW, any comments from anyone on this one? --
>> Even better, is there a way to ask octave to save the contents of a
>> variable in a file, but without the comments which store the
>> variable-name as well?
DG http://gnufans.net/
--
-------------------------------------------------------------
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
-------------------------------------------------------------