Signal Processing Toolbox
  Go to function:
    Search    Help Desk 
conv    Examples   See Also

Convolution and polynomial multiplication.

Syntax

Description

conv(a,b) convolves vectors 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

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
Two-dimensional convolution.
convmtx
Convolution matrix.
convn
N-dimensional convolution (see the online MATLAB Function Reference).
deconv
Deconvolution and polynomial division.
filter
Filter data with a recursive (IIR) or nonrecursive (FIR) filter.
residuez
z-transform partial fraction expansion.
xcorr
Cross-correlation function estimate.


[ Previous | Help Desk | Next ]