| Signal Processing Toolbox | ![]() |
Convolution and polynomial multiplication
Syntax
c = conv(a,b)
Description
c convolves vectors = conv(a,b)
a and b. The convolution sum is
where N is the maximum sequence length. The series is indexed from n + 1 and k + 1 instead of the usual n and k because MATLAB vectors run from 1 to n instead of from 0 to n-1.
The conv function is part of the standard MATLAB language.
Example
The convolution of a = [1 2 3] and b = [4 5 6] is
c = conv(a,b)
c =
4 13 28 27 18
Algorithm
The conv function is an M-file that uses the filter primitive. conv computes the convolution operation as FIR filtering with an appropriate number of zeros appended to the input.
See Also
conv2, convmtx, convn, deconv, filter, residuez, xcorr
| cohere | conv2 | ![]() |