How to apply filter to smooth data?
1 回表示 (過去 30 日間)
古いコメントを表示
size(A)=[512 1].
What is the function to smooth 'A' with either moving average or least square method?
0 件のコメント
採用された回答
Image Analyst
2013 年 4 月 18 日
One way:
windowSize = 7; % Bigger number = more smoothing.
smoothedSignal = conv(noisySignal, ones(windowSize, 1)/windowSize, 'same');
0 件のコメント
その他の回答 (1 件)
Sean de Wolski
2013 年 4 月 17 日
doc smooth
If you have the Curve Fitting Toolbox.
2 件のコメント
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 :)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!