filtfilt and filter order

10 次查看(过去 30 天)
I use a butterworth filter with the filtfilt function. How does the reverse filtering affect the total filter order? If I use a second order butterworth, does the filtfilt function act like a fourth order butterworth (without the shift) or has the reverse filtering no effect on the total filter order? Thnaks for your advice.

采纳的回答

Star Strider
Star Strider 2015-8-4
As I understand the filtfilt documentation, the effect is to produce a result (filtered signal) of a filter of double the order of the filter you give it. It has no effect on the filter itself. (The advantage if filtfilt is that it is phase-neutral.) So at least as I read the documentation, it would act as if your filter was a fourth-order filter in your example.

更多回答(1 个)

p.antunes
p.antunes 2017-3-15
I have a follow up question.
When filtfilt is used as y = filtfilt(b,a,x), such that filter is defined by "a" "b", filtfilt filter the data with a filter with double the order specified when building "a" "b".
However, when filtfilt is used as y = filtfilt(SOS,G,x), such that filter is defined by "SOS" "G", the the filter order duplication will not occur. Is this a correct ?

Community Treasure Hunt

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

Start Hunting!

Translated by