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.

96 Chapter 3 THE DISCRETE-TIME FOURIER ANALYSIS<br />

1<br />

Reconstructed Signal from x1(n) using cubic spline function<br />

xa(t)<br />

xa(t)<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

–5 –4 –3 –2 –1 0 1 2 3 4 5<br />

t in msec.<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

Reconstructed Signal from x2(n) using cubic spline function<br />

0<br />

–5 –4 –3 –2 –1 0 1 2 3 4 5<br />

t in msec.<br />

FIGURE 3.19 Reconstructed signal in Example 3.24<br />

MATLAB script:<br />

% a) Discrete-time Signal x1(n): Ts = 0.0002<br />

>> Ts = 0.0002; n = -25:1:25; nTs = n*Ts; x = exp(-1000*abs(nTs));<br />

% Analog Signal reconstruction<br />

>> Dt = 0.00005; t = -0.005:Dt:0.005; xa = spline(nTs,x,t);<br />

% check<br />

>> error = max(abs(xa - exp(-1000*abs(t))))<br />

error = 0.0317<br />

The maximum error between the reconstructed and the actual analog signal is<br />

0.0317, which is due to the nonideal interpolation and the fact that x a(t) is<br />

nonband-limited. Comparing this error with that from the sinc (or ideal) interpolation,<br />

we note that this error is lower. The ideal interpolation generally suffers<br />

more from time-limitedness (or from a finite number of samples). From the<br />

top plot in Figure 3.19 we observe that visually the reconstruction is excellent.<br />

MATLAB script:<br />

% Discrete-time Signal x2(n): Ts = 0.001<br />

>> Ts = 0.001; n = -5:1:5; nTs = n*Ts; x = exp(-1000*abs(nTs));<br />

% Analog Signal reconstruction<br />

>> Dt = 0.00005; t = -0.005:Dt:0.005; xa = spline(nTs,x,t);<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!