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.

Decimation by a Factor D 485<br />

% (c) Decimation by D = 4<br />

D = 4; y = decimate(x,D); subplot(2,2,3);<br />

Hc = stem(m,y(m+k1/D+1),’r’,’filled’); axis([-1,33,-1.1,1.1]);<br />

set(Hc,’markersize’,2); ylabel(’Amplitude’);<br />

title(’Decimated by D = 4’,’fontsize’,TF);<br />

set(gca,’xtick’,[0,16,32]); set(gca,’ytick’,[-1,0,1]);<br />

xlabel(’n’);<br />

% (d) Decimation by D = 8<br />

D = 8; y = decimate(x,D); subplot(2,2,4);<br />

Hd = stem(m,y(m+k1/D+1),’m’,’filled’); axis([-1,33,-1.1,1.1]);<br />

set(Hd,’markersize’,2); ylabel(’Amplitude’);<br />

title(’Decimated by D = 8’,’fontsize’,TF);<br />

set(gca,’xtick’,[0,16,32]); set(gca,’ytick’,[-1,0,1]);<br />

xlabel(’n’);<br />

From Figure 9.8, we observe that the decimated sequences for D = 2 and<br />

D =4are correct and represent the original sinusoidal sequence x(n) atlower<br />

sampling rates. However, the sequence for D =8is almost zero because the<br />

Original Sequence x(n)<br />

Decimated by D = 2<br />

1<br />

1<br />

Amplitude<br />

0<br />

Amplitude<br />

0<br />

−1<br />

0 16 32<br />

−1<br />

0 16 32<br />

1<br />

Decimated by D = 4 Decimated by D = 8<br />

1<br />

Amplitude<br />

0<br />

Amplitude<br />

0<br />

−1<br />

−1<br />

0 16 32<br />

0 16 32<br />

n<br />

n<br />

FIGURE 9.8 Original and decimated signals in Example 9.2<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!