Create operating point for Simulink model


op = operpoint(sys)


op = operpoint(sys) returns an object, op, containing the operating point of a Simulink® model, sys. Specify sys as either a character vector or a string. Use the object with the function linearize to create linearized models. The operating point object has the following properties:

  • Model — Simulink model name, specified as a character vector.

  • States — State operating point specification, specified as a structure array. Each structure in the array represents the supported states of one Simulink block. (For a list of supported states for operating point objects, see Simulink Model States Included in Operating Point Object.) Edit the properties of this object using dot notation or the set function.

    Each States structure has the following fields:

    Nx(read only)

    Number of states in the Simulink block.


    Simulink block name.


    Name of state, specified as a character vector.


    Simulink block state values, specified as a vector of states. This vector includes all supported states.

    When creating state value specifications for operating point searches using findop and you set the value of a state that you want fixed, also set the Known field of the States property for that state to 1.


    (Only for discrete-time states) Sample time and offset of each Simulink block state, specified as a vector.


    State time rate, specified as one of the following values:

    • 'CSTATE' — Continuous-time state

    • 'DSTATE' — Discrete—time state


    Vector indicating whether each state is inside a reference model:

    • 1 — State is inside a reference model

    • 0 — State is in the current model file


    Block state description, specified as a character vector.

  • Inputs — Input level at the operating point, specified as a vector of input objects. Each input object represents the input levels of one root-level inport block in the Simulink block.

    Each entry in Inputs has the following fields:


    Inport block name.


    Number of inport block signals.


    Dimension of signals accepted by the inport.


    Inport block input levels at the operating point, specified as a vector of input levels.

    When creating input specifications for operating-point searches using findop, also set the Known field of the Inputs property for known input levels that remain fixed during operating point search.


    Inport block input description, specified as a character vector.

  • Time — Times at which any time-varying functions in the model are evaluated, specified as a vector.

  • Version — Object version number.


collapse all

Open Simulink model.


Create operating point for the model.

op = operpoint('magball')
 Operating point for the Model magball.
 (Time-Varying Components Evaluated at time t=0)

(1.) magball/Controller/PID Controller/Filter/Cont. Filter/Filter
      x: 0            
(2.) magball/Controller/PID Controller/Integrator/Continuous/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 

op lists each block in the model that has states. There are no root-level inports in this model, therefore op does not contain inputs.


As an alternative to the operpoint function, compute operating points to meet your application specifications. For more information, see Compute Steady-State Operating Points.

See Also

| | | |

Introduced before R2006a