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.

316 Chapter 7 FIR FILTER DESIGN<br />

FIGURE 7.3<br />

A general zero constellation<br />

In the following examples, we illustrate the preceding properties of<br />

linear-phase FIR filters.<br />

□ EXAMPLE 7.4 Let h(n) ={−4, 1, −1, −2, 5, 6, 5, −2, −1, 1, −4}. Determine the amplitude response<br />

↑<br />

H r (ω) and the locations of the zeros of H<br />

(z).<br />

Solution Since M =11, which is odd, and since h(n) issymmetric about α = (11−1)/2 =<br />

5, this is a Type-1 linear-phase FIR filter. From (7.7) we have<br />

a(0) = h (α) =h(5) =6,a(1) = 2h(5 − 1) = 10, a(2) = 2h(5 − 2) = −4<br />

a (3) =2h (5 − 3) = −2, a(4) =2h (5 − 4) = 2, a(5) = 2h (5 − 5) = −8<br />

From (7.8), we obtain<br />

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

= 6+10cosω − 4 cos 2ω − 2 cos 3ω +2cos 4ω − 8 cos 5ω<br />

MATLAB script:<br />

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

>> M = length(h); n = 0:M-1;<br />

>> [Hr,w,a,L] = Hr_Type1(h);<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!