made matlab script and updated convolution