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.

122 Chapter 4 THE z-TRANSFORM<br />

Pole–Zero Plot<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

Imaginary part<br />

0.2<br />

0<br />

−0.2<br />

0<br />

0.9<br />

−0.4<br />

−0.6<br />

−0.8<br />

−1<br />

−1 −0.5 0 0.5 1<br />

Real Part<br />

FIGURE 4.7 Pole-zero plot of Example 4.11a<br />

Note that we specified b=[1,0] instead of b=1 because the zplane function<br />

assumes that scalars are zeros or poles. The resulting pole-zero plot is shown<br />

in Figure 4.7.<br />

b. Using (4.23) and (4.24), we can determine the magnitude and phase of<br />

H(e jω ). Once again we will use MATLAB to illustrate the use of the freqz<br />

function. Using its first form, we will take 100 points along the upper half of<br />

the unit circle.<br />

MATLAB Script:<br />

>> [H,w] = freqz(b,a,100); magH = abs(H); phaH = angle(H);<br />

>> subplot(2,1,1);plot(w/pi,magH);grid<br />

>> xlabel(’frequency in pi units’); ylabel(’Magnitude’);<br />

>> title(’Magnitude Response’)<br />

>> subplot(2,1,2);plot(w/pi,phaH/pi);grid<br />

>> xlabel(’frequency in pi units’); ylabel(’Phase in pi units’);<br />

>> title(’Phase Response’)<br />

The response plots are shown in Figure 4.8. If you study these plots carefully,<br />

you will observe that the plots are computed between 0 ≤ ω ≤ 0.99π and<br />

fall short at ω = π. This is due to the fact that in MATLAB the lower half<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!