Signal Processing Toolbox Help Desk

filtfilt

Purpose

Zero-phase digital filtering.

Syntax

Description

y = filtfilt(b,a,x) performs zero-phase digital filtering by processing the input data in both the forward and reverse directions (see problem 5.39 in [1]). After filtering in the forward direction, it reverses the filtered sequence and runs it back through the filter. The resulting sequence has precisely zero-phase distortion and double the filter order. filtfilt minimizes startup and ending transients by matching initial conditions.

filtfilt works for both real and complex inputs.

Algorithm

filtfilt is an M-file that uses the filter function. In addition to the forward-reverse filtering, it attempts to minimize startup transients by adjusting initial conditions to match the DC component of the signal and by prepending several filter lengths of a flipped, reflected copy of the input signal.

See Also

fftfilt

FFT-based FIR filtering using the overlap-add method.

filter

Filter data with a recursive (IIR) or nonrecursive (FIR) filter.

filter2

Two-dimensional digital filtering.

References

[1] Oppenheim, A.V., and R.W. Schafer. Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice Hall, 1989. Pgs. 311-312.



[ Previous | Help Desk | Next ]