You are on page 1of 4

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