help-octave
[Top][All Lists]
Advanced

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

Re: SAVE in loop


From: Quentin Spencer
Subject: Re: SAVE in loop
Date: Thu, 19 Jan 2006 10:13:48 -0600
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Michal Seidl wrote:

Hi,
I can not figer out how to give to function "save" the name of file that is stored in variable. This is my code, but it does not work. Can anyone help? flist = [
'cheb0306_pL1.xml';...
'cheb0506_pL1.xml';...
'cheb0511_pL1.xml';...
]
for i=1:size(flist,1)
     .....
     save -text eval('flist(i,:)') X covX
     .....
end


Instead of:

save -text eval('flist(i,:)') X covX

Try

save('-text',flist(i,:),'X','covX');

-Quentin




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