Remove drift from signal
Mostrar comentarios más antiguos

How do I remove the drift from this signal? I want the "flat" lines in beginning and the end to be at the same level.
7 comentarios
Image Analyst
el 18 de Jul. de 2016
You forgot to attach a screenshot or data, so until you read this link about all I can suggest is to use polyfit and subtract the fitted/smoothed signal.
thestargazer
el 18 de Jul. de 2016
thestargazer
el 18 de Jul. de 2016
Star Strider
el 18 de Jul. de 2016
We need to have your time vector as well, since that is required to write code specific to your data. Add that, and upload the .mat file.
Image Analyst
el 18 de Jul. de 2016
Exactly what/where do you consider the baseline to be? Can you draw it on there?
Star Strider
el 18 de Jul. de 2016
There seems to be an integrated square-wave pulse in the centre half of the data. What are your data and how are you acquiring and initially processing them?
thestargazer
el 19 de Jul. de 2016
Editada: thestargazer
el 19 de Jul. de 2016
Respuestas (1)
Star Strider
el 19 de Jul. de 2016
0 votos
Use the detrend function.
Categorías
Más información sobre Correlation and Convolution 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!

