update
Update operating point object with structural changes in model
Syntax
update(op)
Description
update(op) updates an operating point
object, op, to reflect any changes in the associated
Simulink® model, such as states being added or removed.
Examples
Open the magball model.
openExample("magball")Create an operating point object for the model.
op = operpoint("magball")
op =
Operating point for the Model magball.
(Time-Varying Components Evaluated at time t=0)
States:
----------
x
_______
(1.) magball/Controller/PID Controller/Filter/Cont. Filter/Filter
0
(2.) magball/Controller/PID Controller/Integrator/Continuous/Integrator
14.0071
(3.) magball/Magnetic Ball Plant/Current
7.0036
(4.) magball/Magnetic Ball Plant/dhdt
0
(5.) magball/Magnetic Ball Plant/height
0.05
Inputs: None
----------Add an Integrator block to the model, as shown in the following figure.

Update the operating point to include this new state.
update(op)
View the updated operating point, which now contains a state for the integrator.
op
op =
Operating point for the Model magball.
(Time-Varying Components Evaluated at time t=0)
States:
----------
x
_______
(1.) magball/Controller/PID Controller/Filter/Cont. Filter/Filter
0
(2.) magball/Controller/PID Controller/Integrator/Continuous/Integrator
14.0071
(3.) magball/Magnetic Ball Plant/Current
7.0036
(4.) magball/Magnetic Ball Plant/dhdt
0
(5.) magball/Magnetic Ball Plant/height
0.05
(6.) magball/Integrator
0
Inputs: None
----------Alternatives
As an alternative to the update function, update operating
point objects using the Sync with Model button in the
Model Linearizer app.
Version History
Introduced before R2006a