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.

Sampling and Reconstruction in the z-Domain 151<br />

□ EXAMPLE 5.5 Let x(n) =(0.7) n u(n). Sample its z-transform on the unit circle with N =5,<br />

10, 20, 50 and study its effect in the time domain.<br />

Solution<br />

From Table 4.1 the z-transform of x(n) is<br />

1<br />

X(z) =<br />

1 − 0.7z = z<br />

, |z| > 0.7<br />

−1 z − 0.7<br />

We can now use MATLAB to implement the sampling operation<br />

˜X(k) = X(z)| z=e j2πk/N , k =0, ±1, ±2,...<br />

and the inverse DFS computation to determine the corresponding time-domain<br />

sequence. The MATLAB script for N =5is as follows.<br />

>> N = 5; k = 0:1:N-1; % sample index<br />

>> wk = 2*pi*k/N; zk = exp(j*wk); % samples of z<br />

>> Xk = (zk)./(zk-0.7); % DFS as samples of X(z)<br />

>> xn = real(idfs(Xk,N)); % IDFS<br />

>> xtilde = xn’* ones(1,8); xtilde = (xtilde(:))’; % Periodic sequence<br />

>> subplot(2,2,1); stem(0:39,xtilde);axis([0,40,-0.1,1.5])<br />

>> xlabel(’n’); ylabel(’xtilde(n)’); title(’N=5’)<br />

The plots in Figure 5.3 clearly demonstrate the aliasing in the time domain,<br />

especially for N =5and N = 10. For large values of N the tail end of x(n)<br />

1.5<br />

N=5<br />

1.5<br />

N=10<br />

xtilde(n)<br />

1<br />

0.5<br />

xtilde(n)<br />

1<br />

0.5<br />

0<br />

0 10 20 30 40<br />

n<br />

N=20<br />

1.5<br />

0<br />

0 10 20 30 40<br />

n<br />

N=40<br />

1.5<br />

xtilde(n)<br />

1<br />

0.5<br />

xtilde(n)<br />

1<br />

0.5<br />

0<br />

0 10 20 30 40<br />

n<br />

FIGURE 5.3 Plots in Example 5.5<br />

0<br />

0 10 20 30 40<br />

n<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!