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.

430 Chapter 8 IIR FILTER DESIGN<br />

Solution<br />

The design procedure is described in the following MATLAB script:<br />

>> % Digital Filter Specifications:<br />

>> wp = 0.2*pi; % digital Passband freq in rad<br />

>> ws = 0.3*pi; % digital Stopband freq in rad<br />

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

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

>> % Analog Prototype Specifications: Inverse mapping for frequencies<br />

>> T = 1; % Set T=1<br />

>> OmegaP = wp / T; % Prototype Passband freq<br />

>> OmegaS = ws / T; % Prototype Stopband freq<br />

>> % Analog Chebyshev-1 Prototype Filter Calculation:<br />

>> [cs,ds] = afd_chb1(OmegaP,OmegaS,Rp,As);<br />

*** Chebyshev-1 Filter Order = 4<br />

>> % Impulse Invariance transformation:<br />

>> [b,a] = imp_invr(cs,ds,T); [C,B,A] = dir2par(b,a)<br />

C = []<br />

B =-0.0833 -0.0246<br />

0.0833 0.0239<br />

A = 1.0000 -1.4934 0.8392<br />

1.0000 -1.5658 0.6549<br />

The desired filter is a 4th-order Chebyshev-I filter whose system function H(z)is<br />

H(z) =<br />

−0.0833 − 0.0246z −1<br />

1 − 1.4934z −1 +0.8392z + −0.0833 + 0.0239z −1<br />

−2 1 − 1.5658z −1 +0.6549z −2<br />

The frequency response plots are given in Figure 8.22.<br />

□<br />

□ EXAMPLE 8.13 Design a lowpass digital filter using a Chebyshev-II prototype to satisfy<br />

ω p =0.2π, R p =1dB<br />

ω s =0.3π, A s =15dB<br />

Solution<br />

Recall that the Chebyshev-II filter is equiripple in the stopband. It means that<br />

this analog filter has a response that does not go to zero at high frequencies in<br />

the stopband. Therefore after impulse invariance transformation, the aliasing<br />

effect will be significant; this can degrade the passband response. The MATLAB<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!