Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Convolution of two signals

The `dsp.Convolver`

System
object™ convolves the first dimension of an *N*-D input array,
*u*, with the first dimension of an *N*-D input array,
*v*. You can convolve the inputs in the time domain or frequency domain. In
the time domain, the object convolves the first input with the second input. In the frequency
domain, the object multiplies the Fourier transforms of both the inputs, and computes the
inverse Fourier transform of the product. In this domain, depending on the input length, the
object can require fewer computations. For more information on the two computation methods,
see Algorithms.

To convolve two inputs:

Create the

`dsp.Convolver`

object and set its properties.Call the object with arguments, as if it were a function.

To learn more about how System objects work, see What Are System Objects? (MATLAB).

`cnv = dsp.Convolver`

`cnv = dsp.Convolver(Name,Value)`

creates a convolution
System
object, `cnv`

= dsp.Convolver`cnv`

, to convolve two inputs in the time domain or
frequency domain.

creates a convolution System object, `cnv`

= dsp.Convolver(`Name,Value`

)`cnv`

, with each specified property set
to the specified value. Enclose each property name in single quotes.

**For versions earlier than R2016b, use the step
function to run the System object algorithm. The arguments to
step are the object you created, followed by
the arguments shown in this section.**

**For example, y = step(obj,x) and y = obj(x) perform equivalent operations.**

`cnvOut = cnv(input1, input2)`

To use an object function, specify the
System
object as the first input argument. For
example, to release system resources of a System
object named `obj`

, use
this syntax:

release(obj)