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.

346 Chapter 7 FIR FILTER DESIGN<br />

Finally, we have<br />

h(n) =IDFT [H(k)] (7.39)<br />

Note that several textbooks (e.g., [18, 23, 24]) provide explicit formulas<br />

to compute h(n), given H(k). We will use MATLAB’s ifft function<br />

to compute h(n) from (7.39).<br />

Basic idea Given the ideal lowpass filter H d (e jω ), choose the filter<br />

length M and then sample H d (e jω )atM equispaced frequencies between<br />

0 and 2π. The actual response H(e jω )isthe interpolation of the samples<br />

H(k) given by (7.34). This is shown in Figure 7.25. The impulse response<br />

is given by (7.39). Similar steps apply to other frequency-selective filters.<br />

Furthermore, this idea can also be extended for approximating arbitrary<br />

frequency-domain specifications.<br />

From Figure 7.25, we observe the following:<br />

1. The approximation error—that is, the difference between the ideal and<br />

the actual response—is zero at the sampled frequencies.<br />

2. The approximation error at all other frequencies depends on the shape<br />

of the ideal response; that is, the sharper the ideal response, the larger<br />

the approximation error.<br />

3. The error is larger near the band edges and smaller within the band.<br />

There are two design approaches. In the first approach, we use the<br />

basic idea literally and provide no constraints on the approximation error;<br />

that is, we accept whatever error we get from the design. This approach<br />

is called a naive design method. In the second approach, we try to<br />

minimize error in the stopband by varying values of the transition band<br />

samples. It results in a much better design called an optimum design<br />

method.<br />

H d (e jω )<br />

1<br />

Ideal Response and<br />

Frequency Samples<br />

H(e jω )<br />

1<br />

Frequency Samples and<br />

Approximated Response<br />

0<br />

k ω 0<br />

0 1 2 3 4 5 6 7 8 9 10 π<br />

0 1 2 3 4 5 6 7 8 9 10 π<br />

FIGURE 7.25 Pictorial description of frequency sampling technique<br />

k ω<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!