Documentation Center

  • Trial Software
  • Product Updates

Contents

reset

System object: dsp.Delay
Package: dsp

Reset delay states

Syntax

reset(H)

Description

reset(H) resets the states of the delay object H to the values specified in the InitialConditions property.

After you invoke the step method for a nonzero input, the delay object states may change and invoking the step method again without invoking the reset method may produce different outputs for identical inputs.

For example:

H = dsp.Delay(5);
% Delay input by 5 samples
y = step(H, (1:10)');      
% Output is [0 0 0 0 0 1 2 3 4 5]'
% Invoke step without reset
y1 = step(H,(1:10)');
% Output is [6 7 8 9 10 1 2 3 4 5]'
% Reset states
reset(H);
y2 = step(H,(1:10)');
% Output is [0 0 0 0 0 1 2 3 4 5]'
Was this topic helpful?