[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading multiple files
From: |
Paul Kienzle |
Subject: |
Re: Loading multiple files |
Date: |
Fri, 11 Mar 2005 07:13:36 -0500 |
On Mar 11, 2005, at 2:12 AM, <address@hidden> wrote:
Yes:
for i = 1:10
load (sprintf ("file_%03d.txt", i));
endfor
Thanks for the help. Can something similar be used to increment
variable names
without eval? I currently use something like:
eval(['x',int2str(i),'=zeros(4,4)']);
x = cell(10,1);
for i = 1:10
x{i} = load(sprintf("file_%03d.txt", i));
end
- Paul
-------------------------------------------------------------
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
-------------------------------------------------------------