from Covolution function by Manish Agrawal
Using this function you can understand the basic algorithm of convolution.

All files for Covolution function
/conv_func.m
/license.txt

Contact us at files@mathworks.com