help-octave
[Top][All Lists]
Advanced

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

Re: sprintf to make filenames


From: Douglas Eck
Subject: Re: sprintf to make filenames
Date: Mon, 11 Mar 2002 19:58:16 +0100
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.6) Gecko/20011120

Douglas Eck wrote:

You can also use the functional version of save:

a=rand(1,5);
fname="foo.mat"
save("-ascii",fname,"a");

saves the variable "a" to the file "foo.mat" as ascii.

Cheers,
Doug



Just to state what may be obvious:
I didn't use sprintf in the example. You can use sprintf to set
the variable "fname" to whatever you want.





-------------------------------------------------------------
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]