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