Reset System object states
resetImpl( specifies the algorithm that
initializes or resets the states of a System object™. Typically you reset the states to a set of initial values, which is useful
for initialization at the start of simulation.
resetImpl is called by the
reset method only if the object is in use. The object remains as "in-use"
after it is reset. For details, see Detailed Call Sequence.
Method Authoring Tips
You must set
Access = protectedfor this method.
If this System object will be used in the Simulink® MATLAB System (Simulink) block, you cannot modify any tunable properties in this method.
obj — System object
System object handle used to access properties, states, and methods specific to the object. If
resetImpl method does not use the object, you can replace this
Reset Property Value
resetImpl method to reset
the state of the counter stored in the
Count property to
methods (Access = protected) function resetImpl(obj) obj.Count = 0; end end
Introduced in R2011b