Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

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.

reset

System object: dsp.FIRDecimator
Package: dsp

Reset filter states of FIR decimator

Syntax

reset(firdecim)

Description

reset(firdecim) resets the filter states of the FIR decimator object,firdecim, to the initial values of zero. After the step method applies the FIR decimator to nonzero input data, the filter states may change. Invoking the step method again without first invoking the reset method may produce different outputs for an identical input.

Reset an FIR Decimator

Note: This example runs only in R2016b or later. If you are using an earlier release, replace each call to the function with the equivalent step syntax. For example, myObject(x) becomes step(myObject,x).

firdecim = dsp.FIRDecimator;
x = cos(pi/8*(0:1023)')+sin(pi/4*(0:1023)');
y = firdecim(x);

Call the FIR decimator again without reset.

y1 = firdecim(x);
isequal(y,y1)
ans =

  logical

   0

Reset filter states.

reset(firdecim);

Call the FIR decimator again.

y2 = firdecim(x);
isequal(y,y2)
ans =

  logical

   1

Was this topic helpful?