What is the transfer function of the filtfilt command?

4 views (last 30 days)
What is the transfer function of the filtfilt command?
  2 Comments
Star Strider
Star Strider on 4 Oct 2021
It is possible to use transfer function notation with filtfilt, however the question unfortunately makes no sense.
What is your actual question?
.
studentmatlaber
studentmatlaber on 4 Oct 2021
I first designed parks-mcclellan filter for signals (firpmord-firpm). Then with your help I filtered it with the filtfilt command. Now I have to explain what I have done both verbally and mathematically. What is the mathematical equivalent of the firpmord and firpm commands? I need to find the mathematical equivalent of the input-output relationship of the filfilt function.

Sign in to comment.

Answers (1)

Shubham
Shubham on 1 Mar 2024
Hi studentmatlaber,
The filtfilt command in MATLAB applies a digital filter forward and backward to a signal. This zero-phase filtering technique ensures that the filtered signal has no phase distortion because the phase shifts introduced by the forward pass are exactly canceled by the phase shifts in the reverse pass.
The transfer function of a digital filter is typically given by:
where ( b_i ) are the filter coefficients for the numerator, ( a_j ) are the filter coefficients for the denominator, ( M ) is the order of the numerator, ( N ) is the order of the denominator, and ( z ) is the complex frequency variable in the Z-transform domain.
When using filtfilt, the effective transfer function is the squared magnitude of the original filter's transfer function because the signal is filtered twice (once forward and once backward). However, the phase response is linear and zero because the forward and backward filtering cancels out any phase distortion.
The effective transfer function for the filtfilt operation can be written as:
Since the filter is applied in both the forward and backward directions, the magnitude response is squared, but the phase response remains zero. This means that any poles and zeros in the original filter transfer function () will be reflected across the unit circle to create (), effectively doubling the filter order but keeping the phase response zero.
It's important to note that while the filtfilt function does not change the phase of the signal, it does amplify the magnitude of the frequency response by the square of the original filter's magnitude response. This can have implications for the amplitude of the filtered signal, especially in the frequency regions where the original filter has a significant magnitude response.
  1 Comment
Paul
Paul on 1 Mar 2024
Hi Shubham
Actually, filtfilt doesn't really do zero-phase filtering as you've described. Check out this question for examples and discussion if you're interested.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!