Signal Processing Toolbox Previous page   Next Page

Filter Implementation and Analysis

This section describes how to filter discrete signals using the MATLAB filter function and other functions in the Signal Processing Toolbox. It also discusses how to use the toolbox functions to analyze filter characteristics, including impulse response, magnitude and phase response, group delay, and zero-pole locations.

Convolution and Filtering

The mathematical foundation of filtering is convolution. The MATLAB conv function performs standard one-dimensional convolution, convolving one vector with another:

A digital filter's output y(k) is related to its input x(k) by convolution with its impulse response h(k).

If a digital filter's impulse response h(k) is finite length, and the input x(k) is also finite length, you can implement the filter using conv. Store x(k) in a vector x, h(k) in a vector h, and convolve the two:


Previous page  Working with Data Filters and Transfer Functions Next page

© 1994-2005 The MathWorks, Inc.