conv2
2-D convolution.
📝Syntax
C = conv2(A, B)
C = conv2(u, v, A)
C = conv2(A, B, shape)
C = conv2(u, v, A, shape)
📥Input Arguments
Parameter Description
A vector or matrix.
B vector or matrix.
u row or column vector.
v row or column vector.
shape subsection of convolution: 'full' (default: full 2-D convolution), 'same' (central part of the convolution) or 'valid' (parts of the convolution that are computed without zero-padded edges).
📤Output Arguments
Parameter Description
C 2-D convolution, returned as a vector or matrix.
📄Description

conv2 returns the two-dimensional convolution.

💡Examples
A = magic(3);
B = magic(4);
R = conv2(A, B, 'same')
🔗See Also
conv
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub