Best Smoothing Function in Matlab

조회 수: 7 (최근 30일)
Coulton
Coulton 2012년 9월 16일
What are your thoughts on the best Matlab smoothing function? I have will have two set of data. The first should be similar to a sine/cosine wave. The other one is more difficult to explain. Think of a leaf falling from a tree and how it oscillates back and forth as it falls down. That is what my data should look like.

채택된 답변

Image Analyst
Image Analyst 2012년 9월 16일
There are lots of them. Forget about the "best" and go for one that works for your signals. Maybe you can try sgolay() in the Signal Processing Toolbox, which fits a polynomial in a piecewise/windowed fashion as it moves along your signal. You could modify it pretty easily if you didn't want to apply it at the "sharp" parts of your signal where your "leaf" reverses direction. Just apply sgolay, then look for peaks, and replace the peak locations with the original signal instead of the smoothed signal.

추가 답변 (1개)

Jan
Jan 2012년 9월 16일
There is no "best" smoothing method, because the quality of a method depends on the physical nature of the noise. While e.g. a moving mean filter is perfect for some cases, it is not sufficient to remove a clean 50Hz noise.

Community Treasure Hunt

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

Start Hunting!

Translated by