Help in Plotting ECG .csv file
Ältere Kommentare anzeigen
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
What is the question?
madhan ravi
am 26 Feb. 2019
you forgot to upload your file
vandana sharma
am 26 Feb. 2019
madhan ravi
am 26 Feb. 2019
You have a file named plot.m which shadows the inbuilt function plot() please remove it or move it from from the working path.
vandana sharma
am 26 Feb. 2019
vandana sharma
am 26 Feb. 2019
madhan ravi
am 26 Feb. 2019
which plot -all % what shows up?
vandana sharma
am 26 Feb. 2019
madhan ravi
am 26 Feb. 2019
You have some problem with copying: see https://www.mathworks.com/matlabcentral/answers/447044-help-in-plotting-ecg-csv-file#comment_675210
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
Weitere Antworten (0)
Kategorien
Mehr zu Applications finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!