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.

Problems 301<br />

P6.38 An IIR bandstop digital filter that satisfies the requirements:<br />

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

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

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

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

wp = [0.25,0.75]; ws = [0.35,0.65]; delta1 = 0.05; delta2 = 0.01;<br />

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

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

[b,a] = cheby2(N,As,wn,’stop’);<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 log-magnitude response plot and the pole-zero plot<br />

of the designed filter.<br />

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

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

Qcoeff function.<br />

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

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

the Qcoeff function.<br />

P6.39 An IIR lowpass digital filter that satisfies the specifications:<br />

passband edge: 0.4π, R p =0.5 dB<br />

stopband edge: 0.6π, As =50dB<br />

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

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

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

[b,a] = butter(N,wn);<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 cascade-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.40 An IIR highpass digital filter that satisfies the specifications:<br />

stopband edge: 0.4π, A s =60dB<br />

passband edge: 0.6π, R p =0.5 dB<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!