0% found this document useful (0 votes)
15 views3 pages

Exp 4

The document outlines an experiment on linear and circular convolution using Scilab, detailing the properties of linear systems and time invariance. It includes programs for calculating linear convolution and circular convolution through both concentric circle methods and DFT computation. Additionally, it provides pre-lab and post-lab questions to reinforce understanding of the concepts presented.

Uploaded by

thisisabd360
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)
15 views3 pages

Exp 4

The document outlines an experiment on linear and circular convolution using Scilab, detailing the properties of linear systems and time invariance. It includes programs for calculating linear convolution and circular convolution through both concentric circle methods and DFT computation. Additionally, it provides pre-lab and post-lab questions to reinforce understanding of the concepts presented.

Uploaded by

thisisabd360
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
You are on page 1/ 3

EXP No:4 Linear Convolution and Circular Convolution

Aim: To obtain linear and circular convolution of two input sequence using scilab

A linear system has the property that the response to a linear combination of inputs is the
same linear combination of the individual responses. The property of time invariance states that,
in effect, the system is not sensitive to the time origin. More specifically, if the input is shifted in
time by some amount, then the output is simply shifted by the same amount. The importance of
linearity derives from the basic notion that for a linear system if the system inputs can be
decomposed as a linear combination of some basic inputs and the system response is known for
each of the basic inputs, then the response can be constructed as the same linear combination of
the responses to each of the basic inputs. Signals (or functions) can be decomposed as a linear
combination of basic signals in a wide variety of ways. For systems that are both linear and time-
invariant, there are two particularly useful choices for these basic signals: delayed impulses and
complex exponentials. The representation of both continuous time and discrete-time signals as a
linear combination of delayed impulses and the consequences for representing linear, time-
invariant systems. The resulting representation is referred to as convolution.

// Program for LINEAR CONVOLUTION


clc;
clf;
clear all;
x = input("Enter the first sequence: ");
h = input("Enter the second sequence: ");
y = conv(x, h);
disp(conv(x, h), "Convolution = ");
OUTPUT:
Enter the first sequence: [1 2 3 4 5 6 7 8 ]
Enter the second sequence: [ 5 4 5 2 1]
"Convolution = "
5. 14. 28. 44. 61. 78. 95. 112. 84. 60. 23. 8.
// program for circular convolution using concentric circle method
clc ;
clf ;
clear all;
g=input("enter the first sequence");
h=input("enter the second sequence");
N1=length (g);
N2=length(h);
N=max(N1,N2) ;
N3=N1-N2;
if(N3>=0)then
h =[h,zeros(1,N3)];
else
g =[g,zeros(1,- N3)];
end
for n=1:N
y(n)=0;
for i=1:N
j=n - i+1;
if(j<=0)
j= N + j;
end
y(n)=y(n)+g(i)*h(j);
end
end
disp(' sequence y =');
disp(y);
plot2d3(y);
Output
enter the first sequence[2 1 2 1]
enter the second sequence[ 1 2 3 4]
" sequence y ="
14. 16. 14. 16.
// Program for Circular convolution using DFT computation
clc ;
close ;
x1=[2 ,1 ,2 ,1];
x2=[1 ,2 ,3 ,4];
//DFT Compu tation
X1 =fft(x1,-1);
X2=fft(x2,-1);
X3=X1 .* X2 ;
//IDFT Computation
x3 =fft( X3 ,1);
// D i s p l a y s e q u e n c e x3 [ n ] i n command window
disp(x3);
Output
14. 16. 14. 16.

Pre lab
1. Define linear convolution
2. Define circular convolution
3. what is convolution property of DFT
Post lab
1.Find the linear convolution of two sequence manual and check your answer with scilab
x(n)={3,-1,0,1,3,2,0,1,2,1}h(n)={1,1,1}
2.Find the linear convolution of two sequence manual and check your answer with scilab
x(n)={3,2,1,2}h(n)={1,2,1,2}
3.Find the circular convolution of two sequence manual and check your answer with scilab
x1(n)={3,2,1,2}x2(n)={1,2,3,1}

RESULT:

You might also like