02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

458 Chapter 8 IIR FILTER DESIGN<br />

for cheby1, cheby2, and ellip functions with appropriate modifications.<br />

We illustrate the use of these functions through the following examples.<br />

□ EXAMPLE 8.28 In this example we will design a Chebyshev-I highpass filter whose specifications<br />

were given in Example 8.27.<br />

Solution<br />

MATLAB script:<br />

>> % Digital Filter Specifications: % Type: Chebyshev-I highpass<br />

>> ws = 0.4586*pi; % Dig. stopband edge frequency<br />

>> wp = 0.6*pi; % Dig. passband edge frequency<br />

>> Rp = 1; % Passband ripple in dB<br />

>> As = 15; % Stopband attenuation in dB<br />

>> % Calculations of Chebyshev-I Filter Parameters:<br />

>> [N,wn] = cheb1ord(wp/pi,ws/pi,Rp,As);<br />

>> % Digital Chebyshev-I Highpass Filter Design:<br />

>> [b,a] = cheby1(N,Rp,wn,’high’);<br />

>> % Cascade Form Realization:<br />

>> [b0,B,A] = dir2cas(b,a)<br />

b0 = 0.0243<br />

B = 1.0000 -1.9991 0.9991<br />

1.0000 -2.0009 1.0009<br />

A = 1.0000 1.0416 0.4019<br />

1.0000 0.5561 0.7647<br />

The cascade form system function<br />

H(z) =<br />

0.0243(1 − z −1 ) 4<br />

(1+0.5661z −1 +0.7647z −2 )(1+1.0416z −1 +0.4019z −2 )<br />

is identical to the filter designed in Example 8.27, which demonstrates that<br />

the two approaches described on page 386 are identical. The frequency-domain<br />

plots are shown in Figure 8.32.<br />

□<br />

□ EXAMPLE 8.29 In this example we will design an elliptic bandpass filter whose specifications<br />

are given in the following MATLAB script:<br />

>> % Digital Filter Specifications: % Type: Elliptic Bandpass<br />

>> ws = [0.3*pi 0.75*pi]; % Dig. stopband edge frequency<br />

>> wp = [0.4*pi 0.6*pi]; % Dig. passband edge frequency<br />

>> Rp = 1; % Passband ripple in dB<br />

>> As = 40; % Stopband attenuation in dB<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!