You are on page 1of 2

Lab#3 communication system

Name:-Muhammad Faizan

Roll no:EE-17/122

Section:A

Q1
t1=0:0.01:1;
t2=0:0.01:2;
length(t2)
f2=10;
f1=5;
x2=sin(2*pi*f2*t1);
x1=sin(2*pi*f1*t1);
subplot(421)
plot(t1,x1);
subplot(422)
plot(t1,x2);
x=x1+x2;
subplot(423)
plot(t1,x)
leng=length(t1);

impulse_response=zeros(1,leng);
impulse_response(10)=1;
k=1;
impulse_response=k*impulse_response;
subplot(424);

plot(t1,impulse_response)
subplot(425);

y=conv(impulse_response,x);
plot(t2,y);

You might also like