Help in Plotting ECG .csv file
显示 更早的评论
A=readtable('samples.csv');
figure;
x= A{:,1};
y= A{:,2};
plot(x,y);
xlim([2,21601]);
ylim([2,14761]);
11 个评论
Stephan
2019-2-26
What is the question?
madhan ravi
2019-2-26
you forgot to upload your file
vandana sharma
2019-2-26
madhan ravi
2019-2-26
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
2019-2-26
vandana sharma
2019-2-26
madhan ravi
2019-2-26
which plot -all % what shows up?
vandana sharma
2019-2-26
madhan ravi
2019-2-26
You have some problem with copying: see https://www.mathworks.com/matlabcentral/answers/447044-help-in-plotting-ecg-csv-file#comment_675210
Stephan
2019-2-26
@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
2019-2-26
编辑:madhan ravi
2019-2-26
So after testing it , turns out that all the numbers are read as char.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!