masconv

The most easily understood program of convolution
1.6K Downloads
Updated 23 May 2006

View License

This program to perform convolution has been written keeping the ordinary polynomial multiplication in mind and in my opinion is the most easily understood program among the ones I have seen on the web or written by other fellow workers although it may not be the best program in its design. The user may get help upon usage by typing help masconv at the command prompt.

When the user gives the program two vectors (sequences) to be convolved, the program first initialize a temporary matrix of size having number of rows according to the length of the first vector and number of columns one less than the length of both the vectors (as it is required for the convolution sum to have this much length) using the zeroscammand. The program then make use of two for loops to replace the zero values in the temporary matrix at desirable places by simple multiplication of the members of the two vectors. Once the temporary matrix is completed, the program then use the sum command of Matlab to find the final convolution sum and displays the result.

The user can compare the results of this program with the built-in function conv. Any suggestions or criticisms are welcome.

Cite As

Mahmood Sheikh (2024). masconv (https://www.mathworks.com/matlabcentral/fileexchange/11137-masconv), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

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