Jikkk
Jikkk
(Autonomous)
ChaitanayaBharathi (P.O.), Gandipet, Hyderabad – 500075.
CERTIFICATE
This is to certify that project entitled ‘Convolution of the signals ’has been
submitted to Department of Electronics and Communication Engineering,
Mahatma Gandhi Institute of Technology for the partial fulfillment of the
requirement of B. Tech III- Sem (2024-2025) basic simulation laboratory
Signature Signature
Project guide
AIM:
Write a matlab code to calculate the convolution of the following:
x1=1.*(t>=0&t<=1); x2=t/4.*(t>=0&t<=4);
EQUIPMENTS REQURIED:
PC with matlab/octave
MATLAB/OCTAVE CODE:
clc;
close all;
clear all;
t=-5:0.01:5;
x1=1.*(t>=0&t<=1);
x2=t/4.*(t>=0&t<=4);
subplot(3,1,2);
plot(t,x1);
axis([0 1.5 0 1.5]);
xlabel('time');
ylabel('amplitude');
title('first signal');
subplot(3,1,1);
plot(t,x2);
axis([0 4.5 0 1.5]);
xlabel('time');
ylabel('amplitude');
title('second signal');
y=conv(x1,x2);
t1=0:1:length(y)-1;
subplot(3,1,3);
plot(t1,y);
xlabel('time');
ylabel('amplitude');
title('convolved signal');
OUTPUT:
RESULT:
Verified the Convolution of the Signals using MATLAB/octave software is
performedand drawn the graphs.