Documentation Center

  • Trial Software
  • Product Updates

resetImpl

Class: matlab.System
Package: matlab

Reset System object states

Syntax

resetImpl(obj)

Description

resetImpl(obj) defines the state reset equations for the System object™. Typically you reset the states to a set of initial values. This is useful for initialization at the start of simulation.

resetImpl is called by the reset method. It is also called by the setup method, after the setupImpl method.

    Note:   You must set Access=protected for this method.

    Do not use resetImpl to initialize or reset properties. For properties, use the setupImpl method.

    You cannot modify any tunable properties in this method if its System object will be used in the Simulink® MATLAB System block.

Input Arguments

obj

System object handle

Examples

expand all

Reset Property Value

Use the reset method to reset the counter pCount property to zero.

methods (Access=protected)
   function resetImpl(obj)
      obj.pCount = 0; 
   end
end

See Also

How To

Was this topic helpful?