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.

452 Chapter 8 IIR FILTER DESIGN<br />

Lowpass Filter Magnitude Response<br />

1<br />

0.8913<br />

0<br />

1<br />

Lowpass Filter Magnitude in dB<br />

|H|<br />

decibels<br />

0<br />

0 0.2 1<br />

frequency in π units<br />

30<br />

0 0.2 1<br />

frequency in π units<br />

Highpass Filter Magnitude Response<br />

1<br />

0.8913<br />

0<br />

1<br />

Highpass Filter Magnitude in dB<br />

|H|<br />

decibels<br />

0<br />

0 0.6 1<br />

frequency in π units<br />

30<br />

0 0.6 1<br />

frequency in π units<br />

FIGURE 8.31 Magnitude response plots for Example 8.25<br />

function [bz,az] = zmapping(bZ,aZ,Nz,Dz)<br />

% Frequency band Transformation from Z-domain to z-domain<br />

% -------------------------------------------------------<br />

% [bz,az] = zmapping(bZ,aZ,Nz,Dz)<br />

% performs:<br />

% b(z) b(Z)|<br />

% ---- = ----| N(z)<br />

% a(z) a(Z)|@Z = ----<br />

% D(z)<br />

%<br />

bNzord = (length(bZ)-1)*(length(Nz)-1);<br />

aDzord = (length(aZ)-1)*(length(Dz)-1);<br />

bzord = length(bZ)-1; azord = length(aZ)-1;<br />

bz = zeros(1,bNzord+1);<br />

for k = 0:bzord<br />

pln = [1];<br />

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

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

end<br />

pld = [1];<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!