How to apply filter to smooth data?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
size(A)=[512 1].
What is the function to smooth 'A' with either moving average or least square method?
0 commentaires
Réponse acceptée
Image Analyst
le 18 Avr 2013
One way:
windowSize = 7; % Bigger number = more smoothing.
smoothedSignal = conv(noisySignal, ones(windowSize, 1)/windowSize, 'same');
0 commentaires
Plus de réponses (1)
Sean de Wolski
le 17 Avr 2013
doc smooth
If you have the Curve Fitting Toolbox.
2 commentaires
Sean de Wolski
le 18 Avr 2013
A few options would be to use filter() or conv() or a for-loop.
Or you could purchase the CFT :)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!