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.FIRInterpolator
Package: dsp

Reset FIR interpolator filter states

Syntax

reset(firinterp)

Description

reset(firinterp) resets the filter states of the FIR filter in the interpolator object, firinterp, to their initial values of 0. The initial filter state values correspond to the initial conditions for the constant coefficient linear difference equation defining the FIR filter. After the step method applies the interpolator to nonzero input data, the states may be nonzero. Invoking the step method again without first invoking the reset method may produce different outputs for an identical input.

Reset an FIR Interpolator

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).

Reset filter states to 0 to produce consistent output.

firinterp = dsp.FIRInterpolator(2);
x =[1 -1]'; x = repmat(x,8,1);
y = firinterp(x); % Filter states are nonzero

Use reset method to set states to zero.

reset(firinterp);

Apply FIR interpolator to input x

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

  logical

   1

Was this topic helpful?