discrete 1-D convolution.
C = conv(A,B [,shape])
:A a real or complex vector. : :B a real or complex vector. : :shape an optional character string with possible values:
- “full”, conv computes the full convolution. It is the default value.
- “same”, conv computes the central part of the convolution of the same size as A.
- “valid”, conv computes the convolution parts without the zero- padding of A.
: :C a real or complex vector. :
conv uses a straightforward formal implementation of the one- dimensional convolution equation in spatial form.
C=conv(A,B [,shape]) computes the one-dimensional convolution of the vectors A and B:
Note that `convol`_ can be more efficient for large arrays.
A=1:10;
B=[1 -1];
conv(A,B)
Version Description 5.4.0 Function conv introduced. .. _conv2: conv2.html .. _convol: convol.html