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.

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

>> a,L<br />

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

L = 5<br />

>> amax = max(a)+1; amin = min(a)-1;<br />

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

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

>> subplot(2,2,3); stem(0:L,a); axis([-1 2*L+1 amin amax])<br />

>> xlabel(’n’); ylabel(’a(n)’); title(’a(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.4. From these plots, we<br />

observe that there are no restrictions on H r (ω) either at ω =0orat ω = π.<br />

There is one zero-quadruplet constellation and three zero pairs.<br />

□<br />

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

↑<br />

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

10<br />

Impulse Response<br />

20<br />

Type–1 Amplitude Response<br />

5<br />

10<br />

h(n)<br />

0<br />

Hr<br />

0<br />

−5<br />

−10<br />

0 5 10<br />

n<br />

−20<br />

0 0.5 1<br />

frequency in π units<br />

10<br />

a(n) coefficients<br />

Pole–Zero Plot<br />

z–plane<br />

a(n)<br />

5<br />

0<br />

−5<br />

imaginary axis<br />

1<br />

0<br />

−1<br />

0 5 10<br />

n<br />

FIGURE 7.4 Plots in Example 7.4<br />

−1 0 1<br />

real axis<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!