Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Chatu
Posts:
2
Registered:
12/10/12


importing data in file with a numerical prefix in a for loop
Posted:
Dec 10, 2012 12:34 AM


Hi
I am very new to MATLAB, so I am fairly certain that this is a very simple question. I have several output data sets, each with a prefix (e.g. WQ_50 to WQ_83). I would like to use a for loop to import data from the first column (having temperature data) of each of the output data set to a new matrix.
files = 50:1:83 for i = 1:length(files); dataN = importdata ('WQ_(files(i)).csv'); tempN (i,:) = dataN.data (:,1); end
but i keep getting a message saying error in importdata
Any help would be great



