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

Reset states of biquad filter object

Syntax

reset(biquad)

Description

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

Reset a Biquad 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:20;
x = cos(pi/4*n)+sin(pi/2*n);
biquad = dsp.BiquadFilter;
y = biquad(x');

Call the biquad filter without invoking reset.

y1 = biquad(x');
isequal(y,y1)
ans =

  logical

   0

Reset filter states to zero.

reset(biquad);

Call the biquad filter again.

y2 = biquad(x');
isequal(y,y2)
ans =

  logical

   1

Was this topic helpful?