Convolution

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

CONVOLUTION

Convolution is a vital used concept in signals and communication. You have to implement the
concept of Convolution in MATLAB without directly using the in-built function. Plot the two input
signals and the resultant/convoluted signal and attach the screenshot in your write-up. Put the
screenshot of your code in the write-up. No need to submit a MATLAB file.

You can use matrices/arrays to implement it.

Let us say you have two signals, A and B, in the form of the matrix.

A= [ 1 2 3 ]

B= [ 4 5 6 ]

So, we represent the convolution of these as A * B. Let us say the convoluted signal is Y.

The size of Y is ( Size of A + Size of B – 1 ). Here it will be 5.

Let the Y be [ y1 y2 y3 y4 y5 ]

Then y1= b1*a1

y2= b1*a2 + b2*a1

y3= b1*a3 + b2*a2 + b3*a1

y4= b2*a3 + b3*a2

y5= b3*a3

so, as a result Y = [ 4 13 28 27 18 ]

The formula below is the typical formula for convolution.

You may use the following concepts to implement your code:

1) Loops (for loop , while loop)


2) Iterative statements ( if statement , else statement)
3) Plot function
4) Zeros function ( to create a matrix of the desired length with all the elements as zeros )

You can go through some basic kinds of stuff on the internet related to Discrete-time Convolution to
implement this project.

You might also like