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 the update
method and after
the outputImpl
method.
For sink objects, calling updateImpl
before
outputImpl
locks the object. For all other types of objects, calling
updateImpl
before outputImpl
causes an
error.
Do not use this method to update the outputs from the inputs.
You must set Access = protected
for this method.
If the System object will be used in the Simulink® MATLAB System block, you cannot modify any tunable properties in this method.