Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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:

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/PID Controller/Filter
      x: 0            
(2.) magball/Controller/PID Controller/Integrator
      x: 14           
(3.) magball/Magnetic Ball Plant/Current
      x: 7            
(4.) magball/Magnetic Ball Plant/dhdt
      x: 0            
(5.) 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/PID Controller/Filter
      x: 0            
(2.) magball/Controller/PID Controller/Integrator
      x: 14           
(3.) magball/Magnetic Ball Plant/Current
      x: 7            
(4.) magball/Magnetic Ball Plant/dhdt
      x: 0            
(5.) magball/Magnetic Ball Plant/height
      x: 0.05         
(6.) magball/Integrator
      x: 0            
 
Inputs: None 
----------

Alternatives

As an alternative to the update function, update operating point objects using the Sync with Model button in the Linear Analysis Tool.

Introduced before R2006a

Was this topic helpful?