convolution explained in detail

myconv
2.7K Downloads
Updated 27 Nov 2006

No License

function y = myconv(x,h)
This function evaluates the convolution of two finite sequences using the matrix notation.
This follows from simple matrix multiplication which we do in our high school
For example let us try to find the product of two numbers x = 2343 and h = 224
The product turns out to be y1 = 524832
Then how is it same as convolution?
yes here's the trick!!!
let us analyse the product more elobarately
2343 * 224
--------------
0009372
0046860
4686000
--------------
524832
--------------
This is ordinary multiplication. To do convolution, when we multiply do not carry the result after multiplication as we do in ordinary
multiplication. For example in the first row of the above example, we got 2343 * 4 = 9372. Instead write it as [2 3 4 3] * 4 = 8 12 16 12. Repeat this process for all the rows and finally add them as usual. i.e.,
2343 * 224
--------------------
0 0 8 12 16 12
0 4 6 8 6 0
4 6 8 6 0 0
--------------------
4 10 22 26 22 12

which is same as conv(x,h)

Cite As

sri hari bhupala haribhakta (2024). convolution explained in detail (https://www.mathworks.com/matlabcentral/fileexchange/13133-convolution-explained-in-detail), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0