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.

532 Chapter 9 SAMPLING RATE CONVERSION<br />

P9.11 Using the fir2 function, generate a 101-length sequence x(n) whose frequency-domain<br />

sampled values are 0.5 at ω =0,1atω =0.1π, 1atω =0.2, 0atω =0.22π, and0at<br />

ω = π.<br />

1. Compute and plot the DTFT of x(n).<br />

2. Decimate x(n) byafactor of 2, and plot the DTFT of the resulting sequence.<br />

3. Decimate x(n) byafactor of 4, and plot the DTFT of the resulting sequence.<br />

4. Decimate x(n) byafactor of 5, and plot the DTFT of the resulting sequence.<br />

5. Comment on your results.<br />

P9.12 Using the function upsample, study the operation of factor-of-4 upsampling on the<br />

following sequences. Use the stem function to plot the original and the upsampled<br />

sequences. Experiment using the default offset value of zero and the offset value<br />

equal to 2.<br />

1. x 1(n) =sin(0.6πn), 0 ≤ n ≤ 100<br />

2. x 2(n) =sin(0.8πn)+cos(0.5πn), 0 ≤ n ≤ 100<br />

3. x 3(n) =1+cos(πn), 0 ≤ n ≤ 100<br />

4. x 4(n) =0.2 n, 0 ≤ n ≤ 100<br />

5. x 5(n) ={1, 1, 1, 1, 0, 0, 0, 0, 0, 0} PERIODIC, 0 ≤ n ≤ 100<br />

P9.13 Using the fir2 function, generate a 91-length sequence x(n) whose frequency-domain<br />

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

ω =0.75π, 0atω =0.8π, and0atω = π.<br />

1. Compute and plot the DTFT magnitude of x(n).<br />

2. Upsample x(n) byafactor of 2, and plot the DTFT magnitude of the resulting<br />

sequence.<br />

3. Upsample x(n) byafactor of 3, and plot the DTFT magnitude of the resulting<br />

sequence.<br />

4. Upsample x(n) byafactor of 4, and plot the DTFT magnitude of the resulting<br />

sequence.<br />

5. Comment on your results.<br />

P9.14 Using the function interp, study the operation of factor-of-4 interpolation on the<br />

sequences of Problem P9.12. Use the stem function to plot the original and the<br />

interpolated sequences. Experiment, using the filter length parameter values equal to 3<br />

and 5. Comment on any differences in performance of the interpolation.<br />

P9.15 Provide the frequency response plots of the lowpass filters used in the interpolators of<br />

Problem P9.14.<br />

P9.16 Repeat Problem P9.14, using the factor-of-3 interpolation.<br />

P9.17 Provide the frequency response plots of the lowpass filters used in the interpolators of<br />

Problem P9.16.<br />

P9.18 Repeat Problem P9.14, using the factor-of-5 interpolation.<br />

P9.19 Provide the frequency response plots of the lowpass filters used in the interpolators of<br />

Problem P9.18.<br />

P9.20 Using the fir2 function generate a 91-length sequence x(n) whose frequency-domain<br />

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

ω =0.75π, 0atω =0.8π, and0atω = π.<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!