matlab.System.resetImpl - Reset System object states - MATLAB (original) (raw)
Main Content
Class: matlab.System
Reset System object states
Description
resetImpl([obj](#bs4onr8-1%5Fsep%5Fmw%5F353aa417-3412-46f8-81f1-586adf7da5a8))
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.
Run-Time Details
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 = protected
for 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.
Input Arguments
System object handle used to access properties, states, and methods specific to the object. If your resetImpl
method does not use the object, you can replace this input with ~
.
Examples
Use the resetImpl
method to reset the state of the counter stored in the Count
property to zero.
methods (Access = protected) function resetImpl(obj) obj.Count = 0; end end
Version History
Introduced in R2011b