Class:matlab.System
Update object states based on inputs
updateImpl(obj,input1,input2,...)
updateImpl(
specifies the algorithm to update the System object™ states. You implement this method when your algorithm outputs depend only on the object’s internal state and internal properties.obj
,input1,input2,...
)
updateImpl
is called by theupdate
method and after theoutputImpl
method.
For sink objects, callingupdateImpl
beforeoutputImpl
locks the object. For all other types of objects, callingupdateImpl
beforeoutputImpl
causes an error.
Do not use this method to update the outputs from the inputs.
You must setAccess = protected
for this method.
If the System object will be used in the Simulink®MATLAB System(Simulink)block, you cannot modify any tunable properties in this method.