filtering by filter function and having a shift

9 次查看(过去 30 天)
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.

采纳的回答

Star Strider
Star Strider 2022-6-11
See if using the filtfilt function instead of filter solves the problem.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by