Help in Plotting ECG .csv file
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
vandana sharma
am 26 Feb. 2019
Kommentiert: vandana sharma
am 26 Feb. 2019
A=readtable('samples.csv');
figure;
x= A{:,1};
y= A{:,2};
plot(x,y);
xlim([2,21601]);
ylim([2,14761]);
11 Kommentare
Stephan
am 26 Feb. 2019
@Madhan: I tried using readtable and get the same error - if i use csvread it works - there is problably not a problem of a shadowed function
madhan ravi
am 26 Feb. 2019
Bearbeitet: madhan ravi
am 26 Feb. 2019
So after testing it , turns out that all the numbers are read as char.
Akzeptierte Antwort
Stephan
am 26 Feb. 2019
Bearbeitet: Stephan
am 26 Feb. 2019
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
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!