MATLAB Answers

How to detrend the signal?

17 views (last 30 days)
Wan Daniel
Wan Daniel on 18 Apr 2021 at 10:15
Answered: Image Analyst on 18 Apr 2021 at 14:04
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 on 18 Apr 2021 at 13:52
Have you looked at
doc detrend

Image Analyst
Image Analyst on 18 Apr 2021 at 14:04
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.

Community Treasure Hunt

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

Start Hunting!