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 319<br />

10<br />

Impulse Response<br />

30<br />

20<br />

Type–2 Amplitude Response<br />

h(n)<br />

5<br />

0<br />

Hr<br />

10<br />

0<br />

−5<br />

−10<br />

b(n)<br />

10<br />

5<br />

0<br />

−5<br />

0 5 10<br />

n<br />

b(n) coefficients<br />

−20<br />

0 0.5 1<br />

frequency in π units<br />

imaginary axis<br />

1<br />

0<br />

−1<br />

Pole–Zero Plot<br />

z–plane<br />

0 5 10<br />

n<br />

FIGURE 7.5 Plots in Example 7.5<br />

−1 0 1<br />

real axis<br />

From (7.14) we obtain<br />

H r(ω) =c(0) + c(1) sin ω + c(2) sin 2ω + c(3) sin 3ω + c(4) sin 4ω + c(5) sin 5ω<br />

=0+10sin ω − 4 sin 2ω − 2 sin 3ω +2sin 4ω − 8 sin 5ω<br />

MATLAB script:<br />

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

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

>> c,L<br />

a = 0 10 -4 -2 2 -8<br />

L = 5<br />

>> cmax = max(c)+1; cmin = min(c)-1;<br />

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

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

>> subplot(2,2,3); stem(0:L,c); axis([-1 2*L+1 cmin cmax])<br />

>> xlabel(’n’); ylabel(’c(n)’); title(’c(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 />

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!