Borrar filtros
Borrar filtros

How to apply filter to smooth data?

2 visualizaciones (últimos 30 días)
Yun Inn
Yun Inn el 17 de Abr. de 2013
size(A)=[512 1].
What is the function to smooth 'A' with either moving average or least square method?

Respuesta aceptada

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

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 17 de Abr. de 2013
doc smooth
If you have the Curve Fitting Toolbox.
  2 comentarios
Yun Inn
Yun Inn el 17 de Abr. de 2013
I don't have Curve Fitting Toolbox. Alternative?
Sean de Wolski
Sean de Wolski el 18 de Abr. de 2013
A few options would be to use filter() or conv() or a for-loop.
Or you could purchase the CFT :)

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by