How to detrend the signal?

4 views (last 30 days)
Wan Daniel
Wan Daniel on 18 Apr 2021
Answered: Image Analyst on 18 Apr 2021
Folder signal 1 contain all the files needed to run the mat.file code and plot the signal.
The jpg file shows that my signal needed to be detrend so that it will stay on the proper axis.

Answers (2)

Paul
Paul on 18 Apr 2021
Have you looked at
doc detrend

Image Analyst
Image Analyst on 18 Apr 2021
Depends on what you define as the trend. Maybe a time varying signal? Perhaps movmean() or sgolayfilt() can get you a good mean from which you can subtract from the original signal.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!