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.

Problems 469<br />

P8.35 Design a highpass filter to satisfy the specifications:<br />

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

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

1. Use the dhpfd bl function of Problem P8.34 and the Chebyshev-I prototype to design<br />

this filter. Plot the log-magnitude response in dB of the designed filter.<br />

2. Use the cheby1 function for design and plot the log-magnitude response in dB. Compare<br />

these two designs.<br />

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

from an arbitrary lowpass digital filter specifications using the functions given in Table 8.2<br />

and the procedure outlined for highpass filters. The format of this function should be<br />

function [wpLP,wsLP,alpha] = lp2lpfre(wplp,wslp)<br />

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

% [wpLP,wsLP,a] = lp2lpfre(wplp,wslp)<br />

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

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

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

% wplp = passband egde for the given lowpass<br />

% wslp = passband egde for the given lowpass<br />

Using this function, develop a MATLAB function to design a lowpass filter from a<br />

prototype lowpass digital filter using the bilinear transformation. The format of this<br />

function should be<br />

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

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

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

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

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

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

% wp = Passband frequency in radians<br />

% ws = Stopband frequency in radians<br />

% Rp = Passband ripple in dB<br />

% As = Stopband attenuation in dB<br />

Verify your function using the designs in Problem P8.33.<br />

P8.37 Design a bandpass digital filter using the Cheby2 function. The specifications are:<br />

lower stopband edge: 0.3π<br />

upper stopband edge: 0.6π A s =50dB<br />

lower passband edge: 0.4π<br />

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

Plot the impulse response and the log-magnitude response in dB of the designed filter.<br />

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

from a bandpass digital filter specifications using the functions given in Table 8.2 and the<br />

procedure outlined for highpass filters. The format of this function should be<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!