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.

468 Chapter 8 IIR FILTER DESIGN<br />

P8.32 Design a digital lowpass filter using elliptic prototype to satisfy the requirements:<br />

passband edge: 0.3π, R p =0.25 dB<br />

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

Use the bilinear as well as the ellip function and compare your designs.<br />

P8.33 Design a digital lowpass filter to satisfy the specifications:<br />

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

stopband edge: 0.5π,<br />

As =60dB<br />

1. Use the butter function and determine the order N and the actual minimum stopband<br />

attenuation in dB.<br />

2. Use the cheby1 function and determine the order N and the actual minimum stopband<br />

attenuation in dB.<br />

3. Use the cheby2 function and determine the order N and the actual minimum stopband<br />

attenuation in dB.<br />

4. Use the ellip function and determine the order N and the actual minimum stopband<br />

attenuation in dB.<br />

5. Compare the orders, the actual minimum stopband attenuations, and the group delays<br />

in each of the above designs.<br />

P8.34 Write a MATLAB function to determine the lowpass prototype digital filter frequencies<br />

from an highpass digital filter specifications using the procedure outlined in this chapter.<br />

The format of this function should be<br />

function [wpLP,wsLP,alpha] = hp2lpfre(wphp,wshp)<br />

% Band-edge frequency conversion from highpass to lowpass digital filter<br />

% [wpLP,wsLP,a] = hp2lpfre(wphp,wshp)<br />

% wpLP = passband egde for the lowpass prototype<br />

% wsLP = stopband egde for the lowpass prototype<br />

% alpha = lowpass to highpass transformation parameter<br />

% wphp = passband egde for the highpass<br />

% wshp = stopband egde for the highpass<br />

Using this function develop a MATLAB function to design a highpass digital filter using the<br />

bilinear transformation. The format of this function should be<br />

function [b,a] = dhpfd_bl(type,wp,ws,Rp,As)<br />

% IIR Highpass filter design using bilinear transformation<br />

% [b,a] = dhpfd_bl(type,wp,ws,Rp,As)<br />

% type = ’butter’ or ’cheby1’ or ’chevy2’ or ’ellip’<br />

% b = Numerator polynomial of the highpass filter<br />

% a = Denominator polynomial of the highpass filter<br />

% wp = Passband frequency in radians<br />

% ws = Stopband frequency in radians (wp < ws)<br />

% Rp = Passband ripple in dB<br />

% As = Stopband attenuation in dB<br />

Verify your function using the specifications in Example 8.27.<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!