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(delay)

Description

reset(delay) resets the states of the delay object delay 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.

Reset the States of the Delay Object

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

Delay input by 5 samples.

delay = dsp.Delay(5);
y = delay((1:10)')
y =

     0
     0
     0
     0
     0
     1
     2
     3
     4
     5

Delay the input without calling reset.

y1 = delay((1:10)')
y1 =

     6
     7
     8
     9
    10
     1
     2
     3
     4
     5

Reset states.

reset(delay);
y2 = delay((1:10)')
y2 =

     0
     0
     0
     0
     0
     1
     2
     3
     4
     5

Was this topic helpful?