I am trying to import ECG data from PhysioBank to Simulink
Mostrar comentarios más antiguos
I have downloaded the data from PhysioBank ATM and converted the file to mV units. I am able to plot the signal in MATLAB, but when I try to import it in simulink, I get following error: "Simulink does not support loading the input data in file 'ECG data file.mat'. Simulink can only load two-dimensional arrays or timeseries objects. The array must consist of one-dimensional, double, noncomplex samples. To load data having a different type, complexity, or dimension, use a timeseries object. For either an array or a timeseries object, at least one sample point is necessary."
I tried to convert it in time series but the plot is not correct in Simulink, so I must not be doing it properly, can you guide me?
Respuestas (1)
Mark McBroom
el 24 de Mzo. de 2018
0 votos
A couple of possibilities:
1. Once you have converted to TimeSeries, replot the data again in MATLAB to make sure you get the same plot before trying to run in Simulink.
2. What is the step size of the Simulink model? From the looks of your plot, it is maybe 1 second. It needs to be much smaller. Change to be .001 and rerun.
Categorías
Más información sobre Single-Rate Filters en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!