MATLAB: Help in Plotting ECG .csv file

ecgnot enough input arguments

A=readtable('samples.csv');
figure;
x= A{:,1};
y= A{:,2};
plot(x,y);
xlim([2,21601]);
ylim([2,14761]);

Best Answer

Hi,
try this:
A=csvread('samples.csv',2,0);
plot(A(:,1),A(:,2))
For me it works - there is no problem with your plot function i guess. It is due to the format that the readtable function gives your data when inporting it. I get the same error when i try to use readable... So do not search for a double file that is not there...
Best regards
Stephan