| Contents | Index |
| On this page… |
|---|
This example shows how to view the model initial condition and modify an existing operating point in the Linear Analysis Tool.
Open Simulink model.
For example:
sys = 'magball'; open_system(sys)
In the Simulink model window, select Tools > Control Design > Linear Analysis.
The Linear Analysis Tool for the model opens.

Click
in the Exact Linearization tab.

This action opens the Model Initial Condition Viewer, which shows the model initial condition (default operating point).

You cannot edit the Model Initial Condition operating point.
Choose magball_op1 from the Operating Point list. magball_op1 is an existing operating point in the MATLAB® Workspace.

Click
for
the Operating Point list.

This action opens the magball_op1 editor where you may view and edit this operating point.

Select the state or input Value to edit its value.
You cannot edit a trim point that is generated using the Linear Analysis Tool.
Note When you modify your Simulink model while the Linear Analysis Tool is open, you must click Refresh. This action will update the Linear Analysis Tool to reflect your changes to the model. |
This example shows how to view and modify the states in the Simulink model using an operating point object.
Create operating point object from Simulink model.
sys = 'watertank'; load_system(sys) op = operpoint(sys)
The operating point op contains the states and input levels of the Simulink model.
Set the value of the first state.
op.States(1).x = 1.26;
View the operating point object state values.
op.States
(1.) watertank/PID Controller/Integrator
x: 1.26
(2.) watertank/Water-Tank System/H
x: 1 Note When you modify your Simulink model after creating an operating point object, use update to update your operating point object. |
![]() | Operating Point Object Includes a Subset of Simulink Model States | Steady-State Operating Points From Specifications Versus Simulation | ![]() |

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |