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.

536 Chapter 9 SAMPLING RATE CONVERSION<br />

4. Using the fir2 function, generate a 151-length sequence x 2(n) whose frequency-domain<br />

sampled values are 1 at ω =0,0.9 at ω =0.2π, 1atω =0.4π, 0.5 at ω =0.45π, 0at<br />

ω =0.5π, and0atω = π. Process x 2(n), using this filter to decimate it by a factor of 2<br />

to obtain y 2(m). Provide the spectral plots of both sequences.<br />

P9.34 A signal x(n) istobedecimated by a factor of D =3.Ithas a bandwidth of 0.25π, and we<br />

will tolerate aliasing this frequency 0.3π in the decimated signal. Using the<br />

Parks-McClellan algorithm, we want to design such a decimator.<br />

1. Determine the coefficients of the FIR filter that has 0.1 dB ripple in the passband and<br />

40 dB attenuation in the stopband.<br />

2. Provide plots of the impulse and the log-magnitude responses.<br />

3. Let x 1(n) =cos(0.2πn)+2sin(0.3πn). Generate 300 samples of x 1(n), and process it<br />

using this filter to decimate by D =3to obtain y 1(m). Provide the stem plots of both<br />

sequences.<br />

4. Using the fir2 function, generate a 151-length sequence x 2(n) whose frequency-domain<br />

sampled values are 1 at ω =0,1atω =0.1π, 1atω =0.25π, 0.5 at ω =0.3π, 0at<br />

ω =0.35π, and 0 at ω = π. Process x 2(n), using this filter to decimate it by a factor of<br />

3toobtain y 2(m). Provide the spectral plots of both sequences.<br />

P9.35 Design a sampling rate converter that reduces the sampling rate by a factor of 2/5.<br />

1. Using the Parks-McClellan algorithm, determine the coefficients of the FIR filter that<br />

has 0.1 dB ripple in the passband and 30 dB attenuation in the stopband. Choose<br />

reasonable values for the band-edge frequencies.<br />

2. Provide plots of the impulse and the log-magnitude responses.<br />

3. Specify the sets of the time-varying coefficients g(m, n) and the corresponding<br />

coefficients in the polyphase filter realization.<br />

4. Let x(n) =sin(0.35πn)+2cos(0.45πn). Generate 500 samples of x(n) and process it<br />

using this filter to resample by 2/5 toobtain y(m). Provide the stem plots of both<br />

sequences.<br />

P9.36 Design a sampling rate converter that increases the sampling rate by a factor of 7/4.<br />

1. Using the Parks-McClellan algorithm, determine the coefficients of the FIR filter that<br />

has 0.1 dB ripple in the passband and 40 dB attenuation in the stopband. Choose<br />

reasonable values for the band-edge frequencies.<br />

2. Provide plots of the impulse and the log-magnitude responses.<br />

3. Specify the sets of the time-varying coefficients g(m, n) and the corresponding<br />

coefficients in the polyphase filter realization.<br />

4. Let x(n) =2sin(0.35πn)+cos(0.95πn). Generate 500 samples of x(n) and process it,<br />

using this filter to resample by 7/4 toobtain y(m). Provide the stem plots of both<br />

sequences.<br />

P9.37 A signal x(n) istoberesampled by a factor of 3/2. It has a total bandwidth of 0.8π, but<br />

we want to preserve frequencies only up to 0.6π and require that the band up to 0.75π be<br />

free of aliasing in the resampled signal.<br />

1. Using the Parks-McClellan algorithm, determine the coefficients of the FIR filter that<br />

has 0.5 dB ripple in the passband and 50 dB attenuation in the stopband.<br />

2. Provide plots of the impulse and the log-magnitude responses.<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!