|
Contents | Previous | Next | Subchapters |
| Syntax |
y = conv(a, b) |
| See Also | conv , polmul |
na is the length of a
and nb is the length of b,
the return value has length na + nb - 1 and
its i-th element is given by
na
---- / 0 if k - i < 1
> a * B where B = < 0 if k - i > nb
---- i k - i k - i \ b otherwise
i = 1 k-i
This is equivalent to polynomial multiplication
.
a = [ 1 , 1 , 1 , 1, 1];
conv(a, a)
O-Matrix will reply
[ 1 , 2 , 3 , 4 , 5 , 4 , 3 , 2 , 1 ]