updateImpl
Update object states based on inputs
Syntax
updateImpl(obj,input1,input2,...)
Description
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,...
)
Run-Time Details
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.
Method Authoring Tips
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.
Input Arguments
Examples
Version History
Introduced in R2013b