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.

382 Chapter 7 FIR FILTER DESIGN<br />

P7.31 Using the Parks-McClellan algorithm, design a 25-tap FIR differentiator with slope equal to<br />

1 sample/cycle.<br />

1. Choose the frequency band of interest between 0.1π and 0.9π. Plot the impulse response<br />

and the amplitude response.<br />

2. Generate 100 samples of the sinusoid<br />

x(n) =3sin(0.25πn), n =0, ..., 100<br />

and process through the preceding FIR differentiator. Compare the result with the<br />

theoretical “derivative” of x(n). Note: Don’t forget to take the 12-sample delay of the<br />

FIR filter into account.<br />

P7.32 Design a lowest-order equiripple linear-phase FIR filter to satisfy the specifications given in<br />

Figure P7.2. Provide a plot of the amplitude response and a plot of the impulse response.<br />

P7.33 A digital signal x(n) contains a sinusoid of frequency π/2 and a Gaussian noise w(n) ofzero<br />

mean and unit variance; i.e.,<br />

x(n) =2cos πn<br />

2 + w(n)<br />

We want to filter out the noise component using a 50th-order causal and linear-phase FIR<br />

filter.<br />

1. Using the Parks-McClellan algorithm, design a narrow bandpass filter with passband<br />

width of no more than 0.02π and stopband attenuation of at least 30 dB. Note that no<br />

other parameters are given and that you have to choose the remaining parameters for<br />

the firpm function to satisfy the requirements. Provide a plot of the log-magnitude<br />

response in dB of the designed filter.<br />

2. Generate 200 samples of the sequence x(n) and processed through the preceding filter to<br />

obtain the output y(n). Provide subplots of x(n) and y(n) for 100 ≤ n ≤ 200 on one plot<br />

and comment on your results.<br />

1.00<br />

0.90<br />

Amplitude Response<br />

0.45<br />

0.35<br />

0.05<br />

0.00<br />

0 0.4 0.5 0.7 0.8 1<br />

Frequency ω in π Units<br />

FIGURE P7.2 Filter Specifications for Problem P7.32<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!