C = conv(u, v)
C = conv(u, v, shape)
| Parameter | Description |
|---|---|
| u | input vectors, specified as either row or column vectors. |
| v | input vectors, specified as either row or column vectors. |
| 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 | convolution, returned as a vector or matrix. |
conv returns the convolution of vectors u and v.
U = [-1 2 3 -2 0 1 2];
V = [2 4 -1 1];
R = conv(U, V, 'same')
| Version | Description |
|---|---|
| 1.0.0 | initial version |