Borrar filtros
Borrar filtros

How do I pass the signal through a low-pass FIR filter?

1 visualización (últimos 30 días)
Zaref Li
Zaref Li el 28 de Abr. de 2021
Comentada: Star Strider el 29 de Abr. de 2021
I have a string called the signal. I want to pass it through a low pass FIR filter very close to this signed ideal. How can I do it?
signal=1x732
signal=[-0.0029, 0.0117, 0.0068, ...,0.4467, 0.5054]

Respuestas (1)

Star Strider
Star Strider el 28 de Abr. de 2021
if ‘h’ are the numerator vector of the filter (and the filter is designed correctly) —
signal_filtered = filtfilt(h, 1, signal);
That should work.
  2 comentarios
Zaref Li
Zaref Li el 29 de Abr. de 2021
How many should I write instead of h?
Star Strider
Star Strider el 29 de Abr. de 2021
In this example, ‘h’ is a vector of coefficients returned by the funciton that designs the FIR filter (or that you calculate). How you design the filter is your choice, depeding on your reqquirements.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by