[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Naming arrays
From: |
Samir Sharshar |
Subject: |
Re: Naming arrays |
Date: |
Sun, 21 Nov 2004 18:58:16 +0100 |
Hi,
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));
Cheers
Samir
Le 21 nov. 04, à 11:32, Diego Ruiz a écrit :
Thear all,
Is there any way for sequentially naming arrays?
The point is, I'm working in a simulation routine which,
depending on the parameters of each particular run, will
generate a number of arrays (matrices) m<M.
Is is possible to sequentially name them , for example
Matrix_1
Matrix_2
Matrix_3
...
Matrix_m,
without explicitly entering them in the main body of the program?
Note: Because of the nature of the routine I cannot use
multidimensional arrays.
Than you very much,
Diego
******************************************************
Diego Ruiz Hernández
www.econ.upf.es/~diruiz
Universitat Pompeu Fabra, Dept. d'Economia i Empresa
c/ Ramon Trias Fargas 25-27, 08025,
Barcelona, ESPAÑA
Fall Term:
Edinburgh University, School Of Management
William Robertson Building, 50 George Square
Edinburgh EH8 9JY, UK
******************************************************
-------------------------------------------------------------
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
-------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------