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.

Optimal Equiripple Design Technique 371<br />

>> Asd = -max(db(1:1:wsi))<br />

Asd = 49.5918<br />

>> N = N+2;<br />

>> h = firpm(N,f,m,weights);<br />

>> [db,mag,pha,grd,w] = freqz_m(h,[1]);<br />

>> Asd = -max(db(1:1:wsi))<br />

>> Asd = 50.2253<br />

>> M = N+1<br />

M = 29<br />

Note also that we increased the value of N by two tomaintain its even value.<br />

The optimum M was found to be 29. The time- and the frequency-domain plots<br />

of the designed filter are shown in Figure 7.37.<br />

□<br />

□ EXAMPLE 7.26 In this example we will design a “staircase” filter, which has 3 bands with<br />

different ideal responses and different tolerances in each band. The design specifications<br />

are<br />

Band-1: 0 ≤ ω ≤ 0.3π, Ideal gain = 1, Tolerance δ 1 =0.01<br />

Band-2: 0.4π ≤ ω ≤ 0.7π, Ideal gain = 0.5, Tolerance δ 2 =0.005<br />

Band-3: 0.8π ≤ ω ≤ π, Ideal gain = 0, Tolerance δ 3 =0.001<br />

0.4<br />

Actual Impulse Response<br />

0<br />

Magnitude Response in dB<br />

0.2<br />

h(n)<br />

0<br />

−0.2<br />

Decibels<br />

50<br />

−0.4<br />

0 28<br />

n<br />

Amplitude Response<br />

1<br />

0 0.6 0.75 1<br />

frequency in π units<br />

Error Response<br />

0.0288<br />

Hr(w)<br />

Hr(w)<br />

0.0033<br />

−0.0033 0<br />

0<br />

0 0.6 0.75 1<br />

frequency in π units<br />

−0.0288<br />

0 0.6 0.75 1<br />

frequency in π units<br />

FIGURE 7.37 Plots for equiripple highpass FIR filter in Example 7.25<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!