Filter tailing at gaps and extreme ends of data - how to avoid?
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145905/image.png)
Why does this happen and is there anyway of avoiding it?
This question is also linked to the following question: http://www.mathworks.com/matlabcentral/answers/159813-filling-data-gaps-in-a-periodic-timeseries-in-matlab
댓글 수: 0
채택된 답변
Image Analyst
2014년 10월 30일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!