Help in Plotting ECG .csv file
Mostrar comentarios más antiguos
A=readtable('samples.csv');
figure;
x= A{:,1};
y= A{:,2};
plot(x,y);
xlim([2,21601]);
ylim([2,14761]);
11 comentarios
Stephan
el 26 de Feb. de 2019
What is the question?
madhan ravi
el 26 de Feb. de 2019
you forgot to upload your file
vandana sharma
el 26 de Feb. de 2019
madhan ravi
el 26 de Feb. de 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
el 26 de Feb. de 2019
vandana sharma
el 26 de Feb. de 2019
madhan ravi
el 26 de Feb. de 2019
which plot -all % what shows up?
vandana sharma
el 26 de Feb. de 2019
madhan ravi
el 26 de Feb. de 2019
You have some problem with copying: see https://www.mathworks.com/matlabcentral/answers/447044-help-in-plotting-ecg-csv-file#comment_675210
Stephan
el 26 de Feb. de 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
el 26 de Feb. de 2019
Editada: madhan ravi
el 26 de Feb. de 2019
So after testing it , turns out that all the numbers are read as char.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Applications en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!