How make this curve bit smooth or how to reduce some spikes?
Mostrar comentarios más antiguos
Hi,
I want to make this curve bit smoth by minimizing some spikes or I want remove some high frequency content from the curve.
How I can do it? I to do it by applying some moving average filter or band pass filter, etc.?

Respuesta aceptada
Más respuestas (1)
Chunru
el 4 de Sept. de 2021
Try the median filter, where X is your data, N could be around 10 (try it out).
Y = medfilt1(X,N)
2 comentarios
Nisar Ahmed
el 4 de Sept. de 2021
LALIT PANKAJ GROVER
el 4 de Sept. de 2021
You can use:
a = movmean(A,K)
A is vector or matrix on which you want apply mean average.
K is a silding window along which you receive your mean.
Categorías
Más información sobre Smoothing and Denoising en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!