Scilab 5.4.1
      
      
    Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
conv
discrete 1-D convolution.
Calling Sequence
C = conv(A,B [,shape])
Parameters
- A
 a real or complex vector.
- B
 a real or complex vector.
- shape
 an optional character string with possible values:
"full",convcomputes the full convolution. It is the default value."same",convcomputes the central part of the convolution of the same size asA."valid",convcomputes the convolution parts without the zero-padding ofA.
- C
 a real or complex vector.
Description
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:
- With 
shape=="full"the dimensions of the resultCare given bysize(A,'*')+size(B,'*')+1. The indices of the center element ofBare defined asfloor((size(B,'*')+1)/2). - With 
shape=="same"the dimensions of the resultCare given bysize(A). The indices of the center element ofBare defined asfloor((size(B,'*')+1)/2). - With 
shape=="valid"the dimensions of the resultCare given bysize(A,'*')-size(B,'*')+1)ifand(size(A,'*')-size(B,'*'))>=0elseCis empty . The indices of the center element ofBare defined as1. 
Note that convol can be more efficient for large arrays.
Examples
A=1:10; B=[1 -1]; conv(A,B)
Used Functions
The conv function is based on the conv2 builtin.
History
| Версия | Описание | 
| 5.4.0 | Function conv introduced. | 
| Report an issue | ||
| << cepstrum | Signal Processing | conv2 >> |