Let's say I want to read column C from a CSV file which has an unknown number of rows. I have written the following code:
csvread('Filepath',0,2,[0 2 Inf 2])
Which gives me the error:
Error using dlmread (line 157)Internal size mismatchError in csvread (line 50) m=dlmread(filename, ',', r, c, rng);
Have also tried:
csvread('Filepath',0,2,[0 2 : 2])
Which gives the error:
Attempted to access range(3); index out of bounds because numel(range)=2.Error in dlmread (line 105) if r > range(3) || c > range(4), result= []; return, endError in csvread (line 50) m=dlmread(filename, ',', r, c, rng);
So any suggestions on how to accomplish this? Thanks
Best Answer