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 465<br />

function [b,a] =afd(type,Fp,Fs,Rp,As)<br />

%<br />

% function [b,a] =afd(type,Fp,Fs,Rp,As)<br />

% Designs analog lowpass filters<br />

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

% Fp = passband cutoff in Hz<br />

% Fs = stopband cutoff in Hz<br />

% Rp = passband ripple in dB<br />

% As = stopband attenuation in dB<br />

Use the afd butt, afd chb1, afd chb2, and afd elip functions developed in this chapter.<br />

Check your function using specifications given in Problems P8.12 through P8.17.<br />

P8.21 We want to design a Chebyshev-I prototype lowpass digital filter operating at a sampling<br />

rate of 8 kHz with a passband edge of 3.2 kHz, a passband ripple of 0.5 dB, and a minimum<br />

stopband attenuation of 45 dB at 3.8 kHz.<br />

1. Using the impulse invariance transformation with T =1sec, design the digital filter. Plot<br />

the magnitude and the log-magnitude responses as functions of analog frequency in kHz.<br />

2. Repeat part 1 using T =1/8000 sec.<br />

3. Compare the above two designs in parts 1 and 2 in terms of their frequency responses.<br />

Comment on the effect of T on the impulse invariance design.<br />

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

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

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

Use the impulse invariance method with T =2.Determine the system function in the<br />

rational form, and plot the log-magnitude response in dB. Plot the impulse response h(n)<br />

and the impulse response h a(t) ofthe analog prototype and compare their shapes.<br />

P8.23 Write a MATLAB function to design digital lowpass filters based on the impulse invariance<br />

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

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

%<br />

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

% Designs digital lowpass filters using impulse invariance<br />

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

% wp = passband cutoff in Hz<br />

% ws = stopband cutoff in Hz<br />

% Rp = passband ripple in dB<br />

% As = stopband attenuation in dB<br />

% T = sampling interval<br />

Use the afd function developed in Problem P8.20. Check your function on specifications<br />

given in Problems P8.21 and P8.22.<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!