write a Matlab program to show both sampling and reconstruction using a truncated Gaussian pulse signal
fs = 10000; t = -1:1/fs:1; x1 = tripuls(t,20e-3); x2 = rectpuls(t,20e-3); figure subplot(2,1,1) plot(t,x1) axis([-0.1 0.1 -0.2 1.2]) xlabel(‘Time (sec)’) ylabel(‘Amplitude’) title(‘Triangular Aperiodic Pulse’) subplot(2,1,2) plot(t,x2) axis([-0.1 0.1 -0.2 1.2]) xlabel(‘Time (sec)’) ylabel(‘Amplitude’) title(‘Rectangular Aperiodic Pulse’)
Leave a comment