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

Reset internal states of Allpole filter

Syntax

reset(allpole)

Description

reset(allpole) resets the filter states of the Allpole filter object, allpole, to their initial values of 0. The initial filter state values correspond to the initial conditions for the difference equation defining the filter. After the step method applies the allpole filter object 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 Allpole Filter

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

n = 0:100;
x = cos(0.2*pi*n)+sin(0.8*pi*n);
allpole = dsp.AllpoleFilter;
a = lpc(x,20);
allpole.Denominator = a;
y = allpole(x);

Filter states are nonzero. Filter the input again without resetting the filter states.

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

  logical

   0

Now reset filter states to 0.

reset(allpole)

Filter the input.

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

  logical

   1

Was this topic helpful?