How to apply filter to smooth data?

2 ビュー (過去 30 日間)
Yun Inn
Yun Inn 2013 年 4 月 17 日
size(A)=[512 1].
What is the function to smooth 'A' with either moving average or least square method?

採用された回答

Image Analyst
Image Analyst 2013 年 4 月 18 日
One way:
windowSize = 7; % Bigger number = more smoothing.
smoothedSignal = conv(noisySignal, ones(windowSize, 1)/windowSize, 'same');

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 4 月 17 日
doc smooth
If you have the Curve Fitting Toolbox.
  2 件のコメント
Yun Inn
Yun Inn 2013 年 4 月 17 日
I don't have Curve Fitting Toolbox. Alternative?
Sean de Wolski
Sean de Wolski 2013 年 4 月 18 日
A few options would be to use filter() or conv() or a for-loop.
Or you could purchase the CFT :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by