Next:
Transfer Function & Pole-Zero Analysis:
Up:
Discrete-Time Signals & Digital Filtering
Previous:
The -Transform
Filters in Matlab
Filter coefficients in Matlab are specified in terms of the following general filter difference equation:
In this way, a filter with difference equation
would be specified with feedforward coefficients
and a feedback coefficient
.
Likewise, a filter with difference equation
would be specified with a feedforward coefficient
and feedback coefficients
.
In Matlab, we can filter an input signal
with a filter specified by coefficients
and
as
y = filter(b, a, x)
.
In Matlab, we can plot a filter's frequency response using the
freqz
function:
freqz(b, a)
.
©2004-2024 McGill University. All Rights Reserved.
Maintained by
Gary P. Scavone
.