How do you convolve two matrices in Matlab?
C = conv2( A , B ) returns the two-dimensional convolution of matrices A and B . C = conv2( u , v , A ) first convolves each column of A with the vector u , and then it convolves each row of the result with the vector v . C = conv2(___, shape ) returns a subsection of the convolution according to shape .