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

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

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

function should be<br />

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

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

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

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

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

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

% wp = Passband frequency array [wp_lower, wp_upper] in radians<br />

% ws = Stopband frequency array [wp_lower, wp_upper] in radians<br />

% Rp = Passband ripple in dB<br />

% As = Stopband attenuation in dB<br />

Verify your function using the design in Problem P8.39.<br />

P8.41 An analog signal<br />

is to be processed by a<br />

x a(t) =3sin(40πt)+3cos(50πt)<br />

x a(t) −→ A/D −→ H(z) −→ D/A −→ y a(t)<br />

system in which the sampling frequency is 100 sam/sec<br />

1. Design a minimum order IIR digital filter that will pass the first component of x a(t)<br />

with attenuation of less than 1 dB and suppress the second component to at least 50 dB.<br />

The filter should have a monotone passband and an equiripple stopband. Determine the<br />

system function in rational function form and plot the log-magnitude response.<br />

2. Generate 500 samples (sampled at 100 sam/sec) of the signal x a(t) and process through<br />

the designed filter to obtain the output sequence. Interpolate this sequence (using any<br />

one of the interpolating techniques discussed in Chapter 3) to obtain y a(t). Plot the<br />

input and the output signals and comment on your results.<br />

P8.42 Using the bilinear transformation method, design a 10th-order elliptic bandstop filter to<br />

remove the digital frequency ω =0.44π with bandwidth of 0.08π. Choose a reasonable value<br />

for the stopband attenuation. Plot the magnitude response. Generate 201 samples of the<br />

sequence<br />

x(n) =sin [0.44πn] , n =0,...,200<br />

and process thorough the bandstop filter. Comment on your results.<br />

P8.43 Design a digital highpass filter H(z) tobeused in a<br />

x a(t) −→ A/D −→ H(z) −→ D/A −→ y a(t)<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!