0% found this document useful (0 votes)
110 views4 pages

RV College of Engineering: 1RV19ET005 Abhilash M. S 1RV19ET054 Shubh Patiyat

The document is an experiential learning report from RV College of Engineering on implementing linear convolution using circular convolution in MATLAB. It contains the title, code snippet, input and output signals, and a conclusion. The students wrote code to take two signals s1 and s2 of length 4 as input, pad them to the same length using zeros, multiply them using circular convolution, and output the result as [16 24 25 20 10 4 1]. They concluded that linear convolution can be easily computed using circular convolution.

Uploaded by

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

RV College of Engineering: 1RV19ET005 Abhilash M. S 1RV19ET054 Shubh Patiyat

The document is an experiential learning report from RV College of Engineering on implementing linear convolution using circular convolution in MATLAB. It contains the title, code snippet, input and output signals, and a conclusion. The students wrote code to take two signals s1 and s2 of length 4 as input, pad them to the same length using zeros, multiply them using circular convolution, and output the result as [16 24 25 20 10 4 1]. They concluded that linear convolution can be easily computed using circular convolution.

Uploaded by

Shubh Patiyat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

RV College of Engineering

Dept. of Electronics and Telecommunication


Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.

1RV19ET005 Abhilash M. S
1RV19ET054 Shubh Patiyat

01 TITLE-Linear convolution using Circular convolution

We have used matlab to write ad simulate the code


02 Snippet of the Design example-
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
03 CODE-
bdclose all;
clear;
clc;

s1=[4 3 2 1];
s2=[4 3 2 1];
%s1=[4 3 2 1 ];
%s2=[4 3 2 1 ];
s3=flip(s2);

length_out= length(s1)+length(s2)-1;

s1_zeros= length_out-length(s1);
s3_zeros= length_out-length(s3);
temp_s1=horzcat(zeros(1,s1_zeros),s1)';
temp_s2=horzcat(s3,zeros(1,s3_zeros))';

mul=0;
out=zeros(1,length_out);

for i=1:length_out
if(i==1)
mul= temp_s1.*temp_s2;
out(i)=sum(mul);
else
temp_s2=circshift(temp_s2,1);
mul= temp_s1.*temp_s2;
out(i)=sum(mul);

end
end
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
disp(out);
04
Snippet of simulation results-

05 Input applied-
S1= [4,3,2,1]
S2= [4,3,2,1]
Output obtained-
[16 24 25 20 10 4 1]
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
06 Conclusion-
We can find the solution of linear convolution using circular convolution easily

You might also like