You are on page 1of 1

%% Shubham Jain

%% Usn:1MS16EE054
%% EXPERIMENT:Sampling Theorem part(b)
f1=1
f2=2
f3=3
t=-1:0.0001:1;
s1=sin(2*pi*f1*t);
s2=sin(2*pi*f2*t);
s3=sin(2*pi*f3*t);
subplot(1,3,1)
plot(t,s1)
hold on
plot(t,s2)
hold on
plot(t,s3)
st=s1+s2+s3;
subplot(1,3,2)
plot(t,st)
fs=30;
n=0:1/fs:1;
ss1=sin(2*pi*f1*n);
ss2=sin(2*pi*f2*n);
ss3=sin(2*pi*f3*n);
sst=ss1+ss2+ss3;
subplot(1,3,3)
stem(1:length(sst),sst)

You might also like