Eliminate the baseline wavering of this signal
34 views (last 30 days)
Show older comments
I am not able to eliminate the baseline wavering after applying detrend function of matlab. I saw some answers suggesting to use butterword bandpass filter, but i could not find which frequency to use for elimination of the baseline wavering. It would be really helpful if someone helps with the same. I have attached the data for usage.
3 Comments
Answers (1)
Swetha Polemoni
on 3 Sep 2020
Hi,
Step1: Calculate a first order or a linear fit to the signal using “polyfit”.
Step2: Calculate the linear fit output within the range of your signal using “polyval”
Step3: Subtract linear fit output from your signal.
It can also be done by subtracting moving average of the signal from signal. Moving average can be calculated by function "movmean()".
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!