Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

NAME: PRANAV SHARMA

CLASS: ECE T3A


ROLL NO.: 04315602811

PRACTICAL - 6


AIM: MATLAB program to find out circular convolution of 2 sequences.
.
SOFTWARE USED: MATLAB 7.10.0 (R2010a)



MATLAB CODE:

clc
clear all

x1=input('Enter the sequence 1st signal : ');
x2=input('Enter the sequence of 2nd signal : ');

length(x1);
subplot(3,1,1);
n=0:(length(x1)-1);
stem(n,x1);
title('First Sequence');
xlabel('Time')
ylabel('Amplitude')

length(x2);
subplot(3,1,2);
n=0:(length(x2)-1);
stem(n,x2);
title('Second Sequence')
xlabel('Time')
ylabel('Amplitude')

y=length(x1);
x=cconv(x1,x2,y);
disp(x);
subplot(3,1,3);
n=0:(length(x)-1);
stem(n,x);
title('Convolution')
xlabel('Time')
ylabel('Amplitude')









NAME: PRANAV SHARMA
CLASS: ECE T3A
ROLL NO.: 04315602811




INPUT:
Enter the sequence 1st signal : [1,5,6,7,3]
Enter the sequence of 2nd signal : [1,2,3,4,5]



OUTPUT:

77 74 66 53 60

You might also like