0% found this document useful (0 votes)
27 views

MATLAB Program To Find Out Circular Convolution of 2 Sequences.

Pranav Sharma, an ECE student with roll number 04315602811, wrote a MATLAB program to perform circular convolution on two sequences. The program prompts the user to input two sequences, plots the sequences, performs circular convolution using the cconv function, and plots the output convolution sequence. It provides the convolution [77 74 66 53 60] as output when the sample inputs [1,5,6,7,3] and [1,2,3,4,5] are used.

Uploaded by

pranavsharma101
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

MATLAB Program To Find Out Circular Convolution of 2 Sequences.

Pranav Sharma, an ECE student with roll number 04315602811, wrote a MATLAB program to perform circular convolution on two sequences. The program prompts the user to input two sequences, plots the sequences, performs circular convolution using the cconv function, and plots the output convolution sequence. It provides the convolution [77 74 66 53 60] as output when the sample inputs [1,5,6,7,3] and [1,2,3,4,5] are used.

Uploaded by

pranavsharma101
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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