how to filter the noise of a signal
Mostrar comentarios más antiguos
Hi, I need to filter the signals when the value is close to 0 (where the noise is much present). as you can see from the picture there is a lot of noise. I attached the .mat file and the picture
I don't need a particular filter, i just need to clean it a bit so I ask you which is the best method.
thanks.
Respuesta aceptada
Más respuestas (2)
John D'Errico
el 28 de Feb. de 2023
Editada: John D'Errico
el 28 de Feb. de 2023
This is probably a good task for a median filter.
load matlab.mat
whos
plot(F)
Fhat = medfilt1(F,100);
plot(Fhat)
Larger values for the second argument will produce a wider window for the filter.
There are many options of course, and many tools you can use.
Joel
el 28 de Feb. de 2023
0 votos
toleranz=5;
for i=1:length(F)
if abs(F(i))<toleranz
F(i)=0;
end
end
plot(F)
Categorías
Más información sobre Digital Filtering 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!



