Package: dsp
Convolution of two inputs
The Convolver
computes the convolution of
two inputs.
To compute the convolution of two inputs:
Define and set up your convolver. See Construction.
Call step
to compute the convolution
according to the properties of dsp.Convolver
. The
behavior of step
is specific to each object in the
toolbox.
H = dsp.Convolver
returns
a convolver object, H
, that convolves two inputs.
For ND arrays, the convolver computes the convolution columnwise.
For arrays, the inputs must have an equal number of columns. If one
input is a vector and the other is an ND array, the convolver computes
the convolution of the vector with each column of the ND array. Convolving
inputs of length N and M results
in a sequence of length N+M–1.
Convolving matrices of size MbyN and PbyN results
in a matrix of size (M+P–1)byN.
H = dsp.Convolver('
returns a convolver object, PropertyName
',PropertyValue
,
...)H
, with
each property set to the specified value.

Domain for computing convolutions Specify the domain in which the convolver performs the convolutions
as 
clone  Create convolver object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs of step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
step  Convolution of inputs 
Convolution of two rectangular sequences:
hconv = dsp.Convolver; x = ones(10,1); y = step(hconv, x, x); % Result is a triangular sequence plot(y);
This object implements the algorithm, inputs, and outputs described on the Convolution block reference page. The object properties correspond to the block parameters.