What is the transfer function of the filtfilt command?

5 次查看(过去 30 天)
What is the transfer function of the filtfilt command?
  2 个评论
Star Strider
Star Strider 2021-10-4
It is possible to use transfer function notation with filtfilt, however the question unfortunately makes no sense.
What is your actual question?
.
studentmatlaber
studentmatlaber 2021-10-4
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.

请先登录,再进行评论。

回答(1 个)

Shubham
Shubham 2024-3-1
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 个评论
Paul
Paul 2024-3-1
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Digital Filter Design 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by