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 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
States structure has the following fields:
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.
creating state value specifications for operating point searches using
(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:
Vector indicating whether each state is inside a reference model:
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
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
Version — Object version
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) States: ---------- (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.