Help in Plotting ECG .csv file
Show older comments
A=readtable('samples.csv');
figure;
x= A{:,1};
y= A{:,2};
plot(x,y);
xlim([2,21601]);
ylim([2,14761]);
11 Comments
Stephan
on 26 Feb 2019
What is the question?
madhan ravi
on 26 Feb 2019
you forgot to upload your file
vandana sharma
on 26 Feb 2019
madhan ravi
on 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
on 26 Feb 2019
vandana sharma
on 26 Feb 2019
madhan ravi
on 26 Feb 2019
which plot -all % what shows up?
vandana sharma
on 26 Feb 2019
madhan ravi
on 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
on 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
on 26 Feb 2019
Edited: madhan ravi
on 26 Feb 2019
So after testing it , turns out that all the numbers are read as char.
Accepted Answer
More Answers (0)
Categories
Find more on Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!