The General Difference Equation for LTI filters

The general difference equation for LTI filters includes feedback terms, and is given by

$\displaystyle y(n) = b_0x(n)$ $\displaystyle +$ $\displaystyle b_1x(n-1) + \cdots + b_Mx(n-M)$  
  $\displaystyle -$ $\displaystyle a_1y(n-1) - \cdots - a_Ny(n-N)$  

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:


``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>