02.10.2019 Views

UploadFile_6417

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Lowpass Filter Design Using MATLAB 443<br />

matched-z transformation does not preserve either the impulse response<br />

or the frequency response characteristics. Hence it is suitable when designing<br />

using pole-zero placement, but it is generally unsuitable when the<br />

frequency-domain specifications are given.<br />

8.5 LOWPASS FILTER DESIGN USING MATLAB<br />

In this section we will demonstrate the use of MATLAB’s filter design<br />

functions to design digital lowpass filters. These functions use the bilinear<br />

transformation because of its desirable advantages as discussed in the<br />

previous section. These functions are as follows:<br />

1. [b,a]=butter(N,wn)<br />

This function designs an Nth-order lowpass digital Butterworth filter<br />

and returns the filter coefficients in length N +1 vectors b and a. The<br />

filter order is given by (8.49), and the cutoff frequency wn is determined<br />

by the prewarping formula (8.68). However, in MATLAB all digital<br />

frequencies are given in units of π. Hence wn is computed by using the<br />

following relation:<br />

ω n = 2 π tan−1 (<br />

Ωc T<br />

2<br />

The use of this function is given in Example 8.21.<br />

2. [b,a]=cheby1(N,Rp,wn)<br />

This function designs an Nth-order lowpass digital Chebyshev-I filter<br />

with Rp decibels of ripple in the passband. It returns the filter coefficients<br />

in length N +1 vectors b and a. The filter order is given by<br />

(8.59), and the cutoff frequency wn is the digital passband frequency<br />

in units of π; that is,<br />

ω n = ω p /π<br />

The use of this function is given in Example 8.22.<br />

3. [b,a]=cheby2(N,As,wn)<br />

This function designs an Nth-order lowpass digital Chebyshev-II filter<br />

with the stopband attenuation As decibels. It returns the filter coefficients<br />

in length N +1 vectors b and a. The filter order is given by<br />

(8.59), and the cutoff frequency wn is the digital stopband frequency<br />

in units of π; that is,<br />

ω n = ω s /π<br />

The use of this function is given in Example 8.23.<br />

)<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!