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.

342 Chapter 7 FIR FILTER DESIGN<br />

Ideal Impulse Response<br />

Hamming Window<br />

1<br />

0.5<br />

1<br />

0.8<br />

hd(n)<br />

0<br />

w(n)<br />

0.6<br />

−0.5<br />

−1<br />

0 5 10 15 20<br />

n<br />

0.4<br />

0.2<br />

0<br />

0 5 10 15 20<br />

n<br />

h(n)<br />

1<br />

0.5<br />

0<br />

−0.5<br />

−1<br />

Actual Impulse Response<br />

0 5 10 15 20<br />

n<br />

slope in π units<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

Amplitude Response<br />

0<br />

0 0.2 0.4 0.6 0.8 1<br />

frequency in π units<br />

FIGURE 7.23 FIR differentiator design in Example 7.12<br />

□ EXAMPLE 7.13 Design a length-25 digital Hilbert transformer using a Hann window.<br />

Solution<br />

The ideal frequency response of a linear-phase Hilbert transformer is given by<br />

{ −je −jαω<br />

H d (e jω , 0 hd = (2/pi)*((sin((pi/2)*(n-alpha)).^2)./(n-alpha)); hd(alpha+1)=0;<br />

>> w_han = (hann(M))’; h = hd .* w_han; [Hr,w,P,L] = Hr_Type3(h);<br />

>> subplot(2,2,1); stem(n,hd); title(’Ideal Impulse Response’)<br />

>> axis([-1 M -1.2 1.2]); xlabel(’n’); ylabel(’hd(n)’)<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!