Trying to make the baseline of my data follow a sine curve.
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Brandon Steinlein
el 5 de Dic. de 2020
Comentada: Brandon Steinlein
el 5 de Dic. de 2020
So Im trying to take a pre-recorded ECG data set and make the baseline follow a sine curve to mimic baseline wandering. I have tried fit(), the curve fitting tool box, polyfit(), but its not working.
Anyone got any ideas on how I can go about this or where I can find ECG data that is experiencing baseline wandering?
0 comentarios
Respuesta aceptada
Cris LaPierre
el 5 de Dic. de 2020
If you want to introduce baseline wandering, how are you hoping to use fit or polyfit? Why not just add the sin wave to your ecg signal?
ecg=readmatrix("ReducedRawECG.txt");
plot(ecg)
r = linspace(0,pi,length(ecg))';
w = sin(r);
hold on
plot(w)
plot(w+ecg)
hold off
Más respuestas (0)
Ver también
Categorías
Más información sobre Measurements and Feature Extraction en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
