conv
Convolution and polynomial multiplication.
📝Syntax
C = conv(u, v)
C = conv(u, v, shape)
📥Input Arguments
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).
📤Output Arguments
Parameter Description
C convolution, returned as a vector or matrix.
📄Description

conv returns the convolution of vectors u and v.

💡Examples
U = [-1 2 3 -2 0 1 2];
V = [2 4 -1 1];
R = conv(U, V, 'same')
🔗See Also
conv
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub