help-octave
[Top][All Lists]
Advanced

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

Re: Naming arrays


From: John W. Eaton
Subject: Re: Naming arrays
Date: Mon, 22 Nov 2004 00:17:00 -0500

On 21-Nov-2004, Samir Sharshar <address@hidden> wrote:

| Try for save duty in your routine
| 
|   eval(sprintf("save  ./Matrix_%d.mat", number));
| 
| to save your workspace in the current working directory with the name 
| Matrix_valueofnumber.mat
| 
| You just have to increment the value of the variable number.
| 
| To load Matrix_m.mat type
| 
|   eval(sprintf("load  ./Matrix_%d.mat", number));

You can also avoid eval() by using

  save (sprintf ("Matrix_%d.mat", number));
  load (sprintf ("Matrix_%d.mat", number));

jwe



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