Help in Plotting ECG .csv file
21 次查看(过去 30 天)
显示 更早的评论
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
@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.
采纳的回答
Stephan
2019-2-26
编辑:Stephan
2019-2-26
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!