- #1
member 428835
Hi PF!
I'm trying to import multiple .csv files into MATLAB. Since the first row of the .csv is titles, I'm using the readtable function. This process works when I don't use a loop, but when I try to loop through several files I get the error "Error using readtable (line 198) The file extension '.' is not recognized."
The files are called RChan0.0.csv, RChan0.1.csv, RChan0.2.csv...
What I have so far is
Any ideas?
I'm trying to import multiple .csv files into MATLAB. Since the first row of the .csv is titles, I'm using the readtable function. This process works when I don't use a loop, but when I try to loop through several files I get the error "Error using readtable (line 198) The file extension '.' is not recognized."
The files are called RChan0.0.csv, RChan0.1.csv, RChan0.2.csv...
What I have so far is
Code:
N = 2;
intfce = zeros(206,3,N);
for ii = 1:N
intfce(:,:,ii) = readtable('/Users/Josh/Desktop/RChan/RChanTheta71/RChan0.',num2str(ii-1),'.csv');
end
Any ideas?