|
From: | Quentin Spencer |
Subject: | Re: Iterative reading of data files |
Date: | Tue, 10 Oct 2006 11:33:59 -0500 |
User-agent: | Thunderbird 1.5.0.7 (X11/20060913) |
Josh Wiebe wrote:
Hi,I've written a function to perform a calculation on my raw data files. Because these files are sequentially numbered I would like to write another function to repeat this procedure over and over again. How would I go about this? For example,a = csvread('example1.txt'); functionname(a);then I press the up key to change a to a = csvread('example2.txt'); etc. While this works, how could I get a counter to work to add one to the file name "example" until finished?
for n = 1:N a = csvread(sprintf('example%i.txt',n)); end Quentin
[Prev in Thread] | Current Thread | [Next in Thread] |