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.


System object: dsp.FIRDecimator
Package: dsp

Reset filter states of FIR decimator




reset(H) resets the filter states of the FIR decimator object,H, 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.

Example of resetting filter states:

H = dsp.FIRDecimator;
x = cos(pi/8*[0:1023]')+sin(pi/4*[0:1023]');
y = step(H,x);
% Invoke step method again without reset
y1 = step(H,x);
isequal(y,y1) % Returns 0
% Reset filter states
y2 = step(H,x);
isequal(y,y2) % Returns 1
Was this topic helpful?