Borrar filtros
Borrar filtros

filtering by filter function and having a shift

8 visualizaciones (últimos 30 días)
2NOR_Kh
2NOR_Kh el 11 de Jun. de 2022
Comentada: Star Strider el 12 de Jun. de 2022
I have a signal and applied a filter by using filter function in matlab (the built in filter function of matlab). I added padding to my data. now my filtered signal has a shift equal to the padd compared to the initial signal ( I should mention I added padding to the initial signal too). The final output of the filter is equal to the input signal but I dont know where these shift in the signal is arising from. I added a screenshot of the initial and filterd signal. the blue channel is the initial signal and the orange one is the filtered signal.

Respuesta aceptada

Star Strider
Star Strider el 11 de Jun. de 2022
See if using the filtfilt function instead of filter solves the problem.
  2 comentarios
2NOR_Kh
2NOR_Kh el 12 de Jun. de 2022
thank you Star, it was a great help.
Star Strider
Star Strider el 12 de Jun. de 2022
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by