%Spring 99 ECOMMS Class Demo
%S. Mandayam, Rowan University
%Pulse Amplitude Modulation: flat-top sampling
close all;
clear;

%original time domain signal
t1=(0.01:0.1:1.25*pi);
x=7*sin(t1);

%Sampling: PAM signal
t2=(0.01:0.2:1.25*pi);
xpam=7*sin(t2);


figure(1);
plot(t1,x);
hold;
bar(t2,xpam,0.5,'c');
grid on;
legend('Analog','PAM');
xlabel('time');
title('Pulse Amplitude Modulation: Flat-top Sampling ');









