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.

Frequency-band Transformations 453<br />

for l = 0:bzord-k-1<br />

pld = conv(pld,Dz);<br />

end<br />

bz = bz+bZ(k+1)*conv(pln,pld);<br />

end<br />

az = zeros(1,aDzord+1);<br />

for k = 0:azord<br />

pln = [1];<br />

for l = 0:k-1<br />

pln = conv(pln,Nz);<br />

end<br />

pld = [1];<br />

for l = 0:azord-k-1<br />

pld = conv(pld,Dz);<br />

end<br />

az = az+aZ(k+1)*conv(pln,pld);<br />

end<br />

□ EXAMPLE 8.26 Use the zmapping function to perform the lowpass-to-highpass transformation<br />

in Example 8.25.<br />

Solution<br />

First we will design the lowpass digital filter in MATLAB using the bilinear<br />

transformation procedure and then use the zmapping function.<br />

MATLAB script:<br />

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

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

>> wslp = 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; Fs = 1/T; % Set T=1<br />

>> OmegaP = (2/T)*tan(wplp/2); % Prewarp Prototype Passband freq<br />

>> OmegaS = (2/T)*tan(wslp/2); % Prewarp Prototype Stopband freq<br />

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

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

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

>> % Bilinear transformation:<br />

>> [blp,alp] = bilinear(cs,ds,Fs);<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!