Documentation Center

  • Trial Software
  • Product Updates

Contents

reset

System object: dsp.FIRDecimator
Package: dsp

Reset filter states of FIR decimator

Syntax

reset(H)

Description

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
reset(H);
y2 = step(H,x);
isequal(y,y2) % Returns 1
Was this topic helpful?