Navigation

Operators and Keywords

Function List:

C++ API

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

Convolve two vectors a and b.

The output convolution is a vector with length equal to length (a) + length (b) - 1. When a and b are the coefficient vectors of two polynomials, the convolution represents the coefficient vector of the product polynomial.

The optional shape argument may be

shape = "full"

Return the full convolution. (default)

shape = "same"

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

See also: deconv, conv2, convn, fftconv.

Package: octave