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.

Window Design Techniques 335<br />

Ideal Impulse Response<br />

Hamming Window<br />

1<br />

0.2<br />

0.8<br />

hd(n)<br />

0.1<br />

0<br />

w(n)<br />

0.6<br />

0.4<br />

0.2<br />

−0.1<br />

0 20 40 60<br />

n<br />

Actual Impulse Response<br />

0<br />

0 20 40 60<br />

n<br />

Magnitude Response in dB<br />

0<br />

0.2<br />

h(n)<br />

0.1<br />

Decibels<br />

50<br />

0<br />

−0.1<br />

0 20 40 60<br />

n<br />

0 0.2 0.3 1<br />

frequency in π units<br />

FIGURE 7.16 Lowpass filter plots for Example 7.8<br />

As = 52<br />

% Plots<br />

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

>> axis([0 M-1 -0.1 0.3]); xlabel(’n’); ylabel(’hd(n)’)<br />

>> subplot(2,2,2); stem(n,w_kai);title(’Kaiser Window’)<br />

>> axis([0 M-1 0 1.1]); xlabel(’n’); ylabel(’w(n)’)<br />

>> subplot(2,2,3); stem(n,h);title(’Actual Impulse Response’)<br />

>> axis([0 M-1 -0.1 0.3]); xlabel(’n’); ylabel(’h(n)’)<br />

>> subplot(2,2,4);plot(w/pi,db);title(’Magnitude Response in dB’);grid<br />

>> axis([0 1 -100 10]); xlabel(’frequency in pi units’); ylabel(’Decibels’)<br />

Note that the Kaiser window parameters are M =61and β =4.5513 and that<br />

the actual stopband attenuation is 52 dB. The time- and the frequency-domain<br />

plots are shown in Figure 7.17.<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!