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.

348 Chapter 7 FIR FILTER DESIGN<br />

Frequency Samples: M=20<br />

Impulse Response<br />

1<br />

0.2<br />

Hr(k)<br />

h(n)<br />

0.1<br />

0<br />

0<br />

0 0.2 0.3 1<br />

frequency in π units<br />

Amplitude Response<br />

–0.1<br />

0 5 10 15 20<br />

n<br />

Magnitude Response<br />

1<br />

0<br />

Hr(w)<br />

Decibels<br />

16<br />

0<br />

0 0.2 0.3 1<br />

frequency in π units<br />

0 0.2 0.3 1<br />

frequency in π units<br />

FIGURE 7.26<br />

Naive frequency sampling design method<br />

>> subplot(2,2,2); stem(l,h); axis([-1,M,-0.1,0.3])<br />

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

>> subplot(2,2,3); plot(ww/pi,Hr,wl(1:11)/pi,Hrs(1:11),’o’);<br />

>> axis([0,1,-0.2,1.2]); title(’Amplitude Response’)<br />

>> xlabel(’frequency in pi units’); ylabel(’Hr(w)’)<br />

>> subplot(2,2,4);plot(w/pi,db); axis([0,1,-60,10]); grid<br />

>> title(’Magnitude Response’); xlabel(’frequency in pi units’);<br />

>> ylabel(’Decibels’);<br />

The time- and the frequency-domain plots are shown in Figure 7.26. Observe<br />

that the minimum stopband attenuation is about 16 dB, which is clearly unacceptable.<br />

If we increase M, then there will be samples in the transition band,<br />

for which we do not precisely know the frequency response. Therefore the naive<br />

design method is seldom used in practice.<br />

□<br />

7.4.2 OPTIMUM DESIGN METHOD<br />

To obtain more attenuation, we will have to increase M and make the<br />

transition band samples free samples—that is, we vary their values to<br />

obtain the largest attenuation for the given M and the transition width.<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!