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