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.

302 Chapter 6 IMPLEMENTATION OF DISCRETE-TIME FILTERS<br />

can be obtained using the following MATLAB script:<br />

wp = 0.6; ws = 0.4; Rp = 0.5; As = 60;<br />

[N,wn] = ellipord(wp, ws, Rp, As);<br />

[b,a] = ellip(N,Rp,As,wn,’high’);<br />

The filter coefficients b k and a k are in the arrays b and a, respectively, and can be<br />

considered to have infinite precision.<br />

1. Using infinite precision, provide the magnitude response plot and the pole-zero plot of<br />

the designed filter.<br />

2. Assuming direct-form structure and a 10-bit representation for filter coefficients, provide<br />

the magnitude response plot and the pole-zero plot of the designed filter. Use the Qcoeff<br />

function.<br />

3. Assuming parallel-form structure and a 10-bit representation for filter coefficients,<br />

provide the magnitude response plot and the pole-zero plot of the designed filter. Use<br />

the Qcoeff function.<br />

P6.41 A bandstop linear-phase FIR filter that satisfies the specifications:<br />

lower stopband edge: 0.4π<br />

upper stopband edge: 0.6π<br />

lower passband edge: 0.3π<br />

upper passband edge: 0.7π<br />

can be obtained using the following MATLAB script:<br />

A s =50dB<br />

R p =0.2 dB<br />

wp1 = 0.3; ws1 = 0.4; ws2 = 0.6; wp2 = 0.7; Rp = 0.2; As = 50;<br />

[delta1,delta2] = db2delta(Rp,As);<br />

b = firpm(44,[0,wp1,ws1,ws2,wp2,1],[1,1,0,0,1,1],...<br />

[delta2/delta1,1,delta2/delta1]);<br />

The filter impulse response h(n) isinthe array b and can be considered to have infinite<br />

precision.<br />

P6.42 A bandpass linear-phase FIR filter that satisfies the specifications:<br />

0 ≤ |H(e jω )| ≤ 0.01, 0 ≤ ω ≤ 0.25π<br />

0.95 ≤ |H(e jω )| ≤ 1.05, 0.35π ≤ ω ≤ 0.65π<br />

0 ≤ |H(e jω )| ≤ 0.01, 0.75π ≤ ω ≤ π<br />

can be obtained using the following MATLAB script:<br />

ws1 = 0.25; wp1 = 0.35; wp2 = 0.65; ws2 = 0.75;<br />

delta1 = 0.05; delta2 = 0.01;<br />

b = firpm(40,[0,ws1,wp1,wp2,ws2,1],[0,0,1,1,0,0],...<br />

[1,delta2/delta1,1]);<br />

The filter impulse response h(n) isinthe array b and can be considered to have infinite<br />

precision.<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!