Filter tailing at gaps and extreme ends of data - how to avoid?

6 vues (au cours des 30 derniers jours)
Donald John
Donald John le 30 Oct 2014
I am using a Butterworth filter to remove the periodic signal from a data series. However at the ends (and at gaps) of the time-series the filter tails off? I attach an image to describe the effect I am talking about. The red line shows the filtered data, note that at the end of the series when the unfiltered data rises dramatically, the filter does not capture this effect.
Why does this happen and is there anyway of avoiding it?

Réponse acceptée

Image Analyst
Image Analyst le 30 Oct 2014
Try copying the last elements (an amount equal to the filter window width) and then filter the extended signal. Then crop off the copied elements to get back to the original size. Not perfect but should be an improvement I think.

Plus de réponses (0)

Catégories

En savoir plus sur Time Series dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by