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.

Analog-to-Digital Filter Transformations 431<br />

1<br />

0.8913<br />

Magnitude Response<br />

1<br />

Phase Response<br />

|H|<br />

π units<br />

0<br />

0.1778<br />

0<br />

0 0.2 0.3 1<br />

frequency in π units<br />

−1<br />

0 0.2 0.3 1<br />

frequency in π units<br />

0<br />

1<br />

Magnitude in dB<br />

15<br />

Group Delay<br />

decibels<br />

15<br />

Samples<br />

10<br />

5<br />

0 0.2 0.3 1<br />

frequency in π units<br />

0<br />

0 0.2 0.3 1<br />

frequency in π units<br />

FIGURE 8.22<br />

Digital Chebyshev-I lowpass filter using impulse invariance design<br />

script follows:<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_chb2(OmegaP,OmegaS,Rp,As);<br />

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

>> % Impulse Invariance transformation:<br />

>> [b,a] = imp_invr(cs,ds,T); [C,B,A] = dir2par(b,a);<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!