C = conv2(A, B)
C = conv2(u, v, A)
C = conv2(A, B, shape)
C = conv2(u, v, A, shape)
| 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). |
| Parameter | Description |
|---|---|
| C | 2-D convolution, returned as a vector or matrix. |
conv2 returns the two-dimensional convolution.
A = magic(3);
B = magic(4);
R = conv2(A, B, 'same')
| Version | Description |
|---|---|
| 1.0.0 | initial version |