29.08.2015 Views

Sampling and Reconstruction of Analog Signals

Sampling and Reconstruction of Analog Signals

Sampling and Reconstruction of Analog Signals

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 6a<br />

• Reconstruct the sample in example 2a using spline function<br />

• Maximum error is lower due to nonideal interpolation <strong>and</strong> the<br />

fact that x a (t) is nonb<strong>and</strong>-limited<br />

• The ideal interpolation suffers more from time-limitedness<br />

• The plot is excellent<br />

Ts = 0.0002; n = -25:1:25; nTs = n*Ts;<br />

x = exp(-1000*abs(nTs));<br />

% <strong>Analog</strong> Signal reconstruction<br />

Dt = 0.00005;<br />

t = -0.005:Dt:0.005;<br />

xa = spline(nTs,x,t);<br />

plot(t*1000,xa);<br />

xlabel('t in msec.'); ylabel('xa(t)')<br />

stem(n*Ts*1000,x); hold <strong>of</strong>f<br />

% check<br />

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

error =<br />

0.0317<br />

xa(t)<br />

1<br />

0.9<br />

0.8<br />

0.7<br />

0.6<br />

0.5<br />

0.4<br />

0.3<br />

0.2<br />

0.1<br />

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

0<br />

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

t in msec.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!