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.

456 Chapter 8 IIR FILTER DESIGN<br />

% Compute Analog lowpass Prototype Specifications:<br />

T = 1; Fs = 1/T;<br />

OmegaP = (2/T)*tan(wplp/2);<br />

OmegaS = (2/T)*tan(wslp/2);<br />

% Design Analog Chebyshev Prototype Lowpass Filter:<br />

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

% Perform Bilinear transformation to obtain digital lowpass<br />

[blp,alp] = bilinear(cs,ds,Fs);<br />

% Transform digital lowpass into highpass filter<br />

Nz = -[alpha,1]; Dz = [1,alpha];<br />

[b,a] = zmapping(blp,alp,Nz,Dz);<br />

We will demonstrate this procedure in the following example.<br />

□ EXAMPLE 8.27 Design a highpass digital filter to satisfy<br />

ω p =0.6π,<br />

ω s =0.4586π,<br />

R p =1dB<br />

A s =15dB<br />

Use the Chebyshev-I prototype.<br />

Solution<br />

MATLAB script:<br />

>> % Digital Highpass Filter Specifications:<br />

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

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

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

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

>> [b,a] = cheb1hpf(wp,ws,Rp,As); [C,B,A] = dir2cas(b,a)<br />

C = 0.0243<br />

B = 1.0000 -2.0000 1.0000<br />

1.0000 -2.0000 1.0000<br />

A = 1.0000 1.0416 0.4019<br />

1.0000 0.5561 0.7647<br />

The system function is<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 />

which is identical to that in Example 8.26.<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!