How to use convolution command in MATLAB?
w = conv( u,v ) returns the convolution of vectors u and v . If u and v are vectors of polynomial coefficients, convolving them is equivalent to multiplying the two polynomials. w = conv( u,v , shape ) returns a subsection of the convolution, as specified by shape .
How to use conv2 command in MATLAB?
Description. 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 .