| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Control Design |
| Contents | Index |
| Learn more about Simulink Control Design |
update(op)
As an alternative to the update function, update operating point objects using the Sync with Model button in the Simulink Control Design GUI. See Operating Point Analysis Using the GUI.
update(op) updates an operating point object, op, to reflect any changes in the associated Simulink model, such as states being added or removed.
Open the magball model:
magball
Create an operating point object for the model:
op=operpoint('magball')
This syntax returns:
Operating Point for the Model magball.
(Time-Varying Components Evaluated at time t=0)
States:
----------
(1.) magball/Controller/Controller
x: 0
(2.) magball/Magnetic Ball Plant/Current
x: 7
(3.) magball/Magnetic Ball Plant/dhdt
x: 0
(4.) magball/Magnetic Ball Plant/height
x: 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)
The new operating point appears:
Operating Point for the Model magball.
(Time-Varying Components Evaluated at time t=0)
States:
----------
(1.) magball/Controller/Controller
x: 0
(2.) magball/Magnetic Ball Plant/Current
x: 7
(3.) magball/Magnetic Ball Plant/dhdt
x: 0
(4.) magball/Magnetic Ball Plant/height
x: 0.05
(5.) magball/Integrator
x: 0
Inputs: None
![]() | setxu | Block Reference | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |