Create operating point for Simulink model


op = operpoint('sys')


As an alternative to the operpoint function, create operating points in the Linear Analysis Tool. See Steady-State Operating Points (Trimming) from Specifications.


op = operpoint('sys') returns an object, op, containing the operating point of a Simulink® model, sys. Use the object with the function linearize to create linearized models. The operating point object properties are:

Edit the properties of this object directly or with the set function.


Model specifies the name of the Simulink model that this operating point object refers to.


States describes the operating points of states in the Simulink model. The States property is a vector of state objects that contains the operating point values of the states. There is one state object per block that has a supported state in the Simulink model. (For a list of supported states for operating point computations, see Simulink Model States Included in Operating Point Object.)

The States object has the following properties:


Number of states in the block. This property is read-only.


Block with which the states are associated.


Vector containing the values of states in the block.


Vector containing the sample time and offset for the state.


Set this value to CSTATE, for a continuous state, or DSTATE for a discrete state.


Set this value to 1, when the state is inside a referenced model, or 0, when it is not.


Text string describing the block.


Inputs is a vector of input objects that contains the input levels at the operating point. There is one input object per root-level inport block in the Simulink model. The Inputs object has the following properties:


Inport block with which the input vector is associated


Width of the corresponding inport


Vector containing the input level at the operating point


Text string describing the input


Time specifies the time at which any time-varying functions in the model are evaluated.


To create an operating point object for the Simulink model magball, type:

op = operpoint('magball')

which returns the following:

 Operating Point for the Model magball.
 (Time-Varying Components Evaluated at time t=0)

(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 

MATLAB® software displays the name of the model, the time at which any time-varying functions in the model are evaluated, the names of blocks containing states, and the values of the states at the operating point. In this example there are four blocks that contain states in the model and four entries in the States object. The first entry contains two states. MATLAB also displays the Inputs although there are not any in this model. To view the properties of op in more detail, use the get function.

See Also

| | | |

Was this topic helpful?