0% found this document useful (0 votes)
15 views1 page

Convolution

The document discusses implementing convolution in MATLAB without using built-in functions. Convolution is a vital concept in signals and communication. Students are asked to: [1] Take two sample signals A and B represented as matrices, [2] Calculate their convolution Y by multiplying and summing corresponding elements based on the convolution formula, [3] Plot the input signals A and B and output signal Y, and [4] Include screenshots of the code and plotted signals in their write-up. Loops, conditional statements, plot and zeros functions can be used to implement the convolution calculation in code.

Uploaded by

Titus Grey
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 views1 page

Convolution

The document discusses implementing convolution in MATLAB without using built-in functions. Convolution is a vital concept in signals and communication. Students are asked to: [1] Take two sample signals A and B represented as matrices, [2] Calculate their convolution Y by multiplying and summing corresponding elements based on the convolution formula, [3] Plot the input signals A and B and output signal Y, and [4] Include screenshots of the code and plotted signals in their write-up. Loops, conditional statements, plot and zeros functions can be used to implement the convolution calculation in code.

Uploaded by

Titus Grey
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/ 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