0% found this document useful (0 votes)
15 views7 pages

Signal and System - Lab Report-07 - FA19-BEE-140

The document discusses analyzing continuous time linear time-invariant (LTI) systems using the convolution integral. It presents examples of convolving different input signals with impulse responses, both using numerical convolution and analytical step-by-step methods. The conclusion reaffirms that convolution computes the system response as the convolution of the input and impulse response.

Uploaded by

hogef37605
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views7 pages

Signal and System - Lab Report-07 - FA19-BEE-140

The document discusses analyzing continuous time linear time-invariant (LTI) systems using the convolution integral. It presents examples of convolving different input signals with impulse responses, both using numerical convolution and analytical step-by-step methods. The conclusion reaffirms that convolution computes the system response as the convolution of the input and impulse response.

Uploaded by

hogef37605
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Name Muhammad Rumman Afzal

Registration Number FA19-BEE-140/ISB

Class SIGNAL & SYSTEM (BEE-4C)

Instructor’s Name
MAM MEHWISH MEHMOOD

Gggggggggggggggggggggggggggggggggggggg
Lab 07- Analysis of Continuous Time LTI Systems using
Convolution Integral.

step = 0.01;
tx1 = -1:step:0.5;
tx2 = 0.5+step:step:3;
t = [tx1 tx2];

x1 = ones(size(tx1)).*0.6;
x2 = ones(size(tx2)).*0.3;
x = [x1 x2];

h = exp(-t).*heaviside(t);
plot(t,x,t,h,'r')
xlim([-1.2 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(\tau)')

y = conv(x,h);
yt = -3:0.01:5;
plot(yt,y)
legend('y(t)=x(t)*h(t)')
title convolution
Other Method (Analytical)
step = 0.01;
tx1 = -1:step:0.5;
tx2 = 0.5+step:step:3;
t = [tx1 tx2];

x1 = ones(size(tx1)).*0.6;
x2 = ones(size(tx2)).*0.3;
x = [x1 x2];

h = exp(-t).*heaviside(t);
subplot(2,2,1)
plot(t,x,t,h,'r')
xlim([-1.2 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(\tau)')

subplot(2,2,2)
plot(t,x,-t,h,'r')
xlim([-1.2 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(-\tau)')

subplot(2,2,3)
p = -1.2;
plot(t,x,-t+p,h,'r')
xlim([-1.3 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(-1.2-\tau )')

subplot(2,2,4)
p = 0.5;
plot(t,x,-t+p,h,'r')
xlim([-1.3 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(0.5-\tau )')
subplot(2,2,1)
p = 2.5;
plot(t,x,-t+p,h,'r')
xlim([-1.3 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(2.5-\tau )')

subplot(2,2,2)
p = 3;
plot(t,x,-t+p,h,'r')
xlim([-1.3 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(3-\tau )')

subplot(2,2,3)
p = 5;
plot(t,x,-t+p,h,'r')
xlim([-1.3 3.2])
ylim([ -0.2 1.2])
legend('x(\tau)','h(5-\tau )')
step = 0.01;
t1 = 0:step:1-step;
t2 = 1:step:2;
t3 = 2+step:step:10;
t = [t1 t2 t3];

x1 = zeros(size(t1));
x2 = ones(size(t2));
x3 = zeros(size(t3));
x = [x1 x2 x3];

h = x;
subplot(3,1,1)
plot(t,x,'LineWidth',2)
legend('x(t)')
xlim([-0.2 10.2])
ylim([-0.2 1.2])

subplot(3,1,2)
plot(t,h,'LineWidth',2);
legend('h(t)')
xlim([-0.2 10.2])
ylim([-0.2 1.2])

subplot(3,1,3)
y = conv(x,h).*step;
yt = 0:step:20;
plot(yt,y,'LineWidth',2);
legend('y(t)=x(t)*h(t)')
xlim([-0.2 10.2])
ylim([-0.2 1.2])

step = 0.01;
t1 = 0:step:1;
t2 = 1+step:step:2;
t = [t1 t2];
x1 = 2.*t1;
x2 = -2.*t2 + 4;
x = [x1 x2];
subplot(3,1,1)
plot(t,x,'LineWidth',2)
legend('x(t)')
xlim([0 8])
grid on
subplot(3,1,2)
th = 0:step:4;
h1 = ones(size(th));
h2 = cos(2.*pi.*th);
h = h2.*h1;
plot(th,h,'LineWidth',2)
legend('h(t)')
xlim([0 8])
grid on
subplot(3,1,3)
y = conv(x,h).*step;
yt = 0:step:6;
subplot(3,1,3)
plot(yt,y,'LineWidth',2)
legend('y(t)=x(t)*h(t)')
xlim([0 8])
grid on

CONCLUSION:
In this lab, we learn continuous time convolution by both methods i.e. by convolution
and step by step analysis method. We see in convolution method the response of a
system to any input signal is computed by the convolution of the input signal with the
impulse response of the system.

You might also like