From help-request at octave dot org Fri Dec 17 22:57:36 2004 Subject: Re: save;load question From: "D Goel" To: help at octave dot org Date: Fri, 17 Dec 2004 23:58:43 -0500 Geraint Paul Bevan 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 -------------------------------------------------------------