: conv (a, b)
: conv (a, b, shape)

Convolve two vectors a and b.

When a and b are the coefficient vectors of two polynomials, the convolution represents the coefficient vector of the product polynomial.

The size of the result is determined by the optional shape argument which takes the following values

shape = "full"

Return the full convolution. (default) The result is a vector with length equal to length (a) + length (b) - 1.

shape = "same"

Return the central part of the convolution with the same size as a.

shape = "valid"

Return only the parts which do not include zero-padded edges. The size of the result is max (size (a) - size (b) + 1, 0).

See also: deconv, conv2, convn, fftconv.

Package: communications