This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


N-D convolution


C = convn(A,B)
C = convn(A,B,'shape')


C = convn(A,B) computes the N-dimensional convolution of the arrays A and B. The size of the result is size(A)+size(B)-1.

C = convn(A,B,'shape') returns a subsection of the N-dimensional convolution, as specified by the shape parameter:


Returns the full N-dimensional convolution (default).


Returns the central part of the result that is the same size as A.


Returns only those parts of the convolution that can be computed without assuming that the array A is zero-padded. The size of the result is

max(size(A)-size(B) + 1, 0)

See Also


Introduced before R2006a

Was this topic helpful?