This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

reset

Reset internal states of System object

Syntax

reset(obj)

Description

example

reset(obj) resets the internal states and input properties of the System object™ to their initial values.

  • If obj writes or reads a file, reset resets the object to the beginning of the file.

  • If obj changes properties, reset resets the properties to their initial default values.

  • If obj uses a random number generation seed, reset resets the seed property.

Examples

collapse all

Create a Counter object and set a property.

obj = Counter;
obj.UseIncrement = false
obj = 
  Counter with properties:

    UseIncrement: false
    UseWrapValue: true
      StartValue: 1
       Increment: 1
       WrapValue: 10

Reset and release the object.

reset(obj)
release(obj)

Input Arguments

collapse all

System object whose state you want to reset.

Extended Capabilities

Introduced in R2010a