The general difference equation for LTI filters includes
feedback terms, and is given by
This can be implemented in Matlab using the filter function:
B = ...; % feedforward coefficients
A = ...; % feedback coefficients
y = filter(B, A, x);
Matlab specifies coefficients according to the filter
transfer function and NOT the difference equation:
- all feedback coefficients (except the first) have a sign
opposite to that in the difference equation;
- this is explained by moving the
terms in the difference
equation to the left of the equal sign (a step in arriving
at the filter transfer function):
``Music 206: Introduction to Delay and Filters II''
by Tamara Smyth,
Computing Science, Simon Fraser University.
Download PDF version (filtersDelayII.pdf)
Download compressed PostScript version (filtersDelayII.ps.gz)
Download PDF `4 up' version (filtersDelayII_4up.pdf)
Download compressed PostScript `4 up' version (filtersDelayII_4up.ps.gz)
Copyright © 2019-04-18 by Tamara Smyth.
Please email errata, comments, and suggestions to Tamara Smyth<trsmyth@ucsd.edu>