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.

Properties of Linear-phase FIR Filters 321<br />

h(n)<br />

10<br />

5<br />

0<br />

Impulse Response<br />

Hr<br />

30<br />

20<br />

10<br />

Type–4 Amplitude Response<br />

−5<br />

0<br />

d(n)<br />

10<br />

5<br />

0<br />

−5<br />

0 5 10<br />

n<br />

d(n) coefficients<br />

−10<br />

0 0.5 1<br />

frequency in π units<br />

imagninary axis<br />

1<br />

0<br />

−1<br />

Pole–Zero Plot<br />

z–plane<br />

0 5 10<br />

n<br />

FIGURE 7.7 Plots in Example 7.7<br />

−1 0 1<br />

real axis<br />

MATLAB script:<br />

>> h = [-4,1,-1,-2,5,6,-6,-5,2,1,-1,4];<br />

>> M = length(h); n = 0:M-1; [Hr,w,d,L] = Hr_Type4(h);<br />

>> b,L<br />

d = 12 10 -4 -2 2 -8<br />

L = 6<br />

>> dmax = max(d)+1; dmin = min(d)-1;<br />

>> subplot(2,2,1); stem(n,h); axis([-1 2*L+1 dmin dmax])<br />

>> xlabel(’n’); ylabel(’h(n)’); title(’Impulse Response’)<br />

>> subplot(2,2,3); stem(1:L,d); axis([-1 2*L+1 dmin dmax])<br />

>> xlabel(’n’); ylabel(’d(n)’); title(’d(n) coefficients’)<br />

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

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

>> title(’Type-1 Amplitude Response’)<br />

>> subplot(2,2,4); pzplotz(h,1)<br />

The plots and the zero locations are shown in Figure 7.7. From these plots, we<br />

observe that H r (ω) iszero at ω =0.There is one zero-quadruplet constellation,<br />

three zero pairs, and one zero at ω =0as expected.<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!