Note: This page has been translated by MathWorks. Please click here

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

To view all translated materals including this page, select Japan 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)

Common to All System Objects

`step` | Run System object algorithm |

`clone` | Create duplicate System object |

`getNumInputs` | Number of inputs required to call the System object |

`getNumOutputs` | Number of outputs from calling the System object |

`isLocked` | Determine if System object is locked |

`release` | Release resources and allow changes to System object property values and input characteristics |

`reset` | Reset internal states of System object |

Was this topic helpful?