Skip to Main Content Skip to Search
Product Documentation

View and Modify Operating Points

View and Modify Operating Point in Linear Analysis Tool

This example shows how to view the model initial condition and modify an existing operating point in the Linear Analysis Tool.

  1. Open Simulink model.

    For example:

    sys = 'magball';
    open_system(sys)
  2. In the Simulink model window, select Tools > Control Design > Linear Analysis.

    The Linear Analysis Tool for the model opens.

  3. 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.

  4. Choose magball_op1 from the Operating Point list. magball_op1 is an existing operating point in the MATLAB® Workspace.

  5. 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.

View and Modify Operating Point Object

This example shows how to view and modify the states in the Simulink model using an operating point object.

  1. 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.

  2. Set the value of the first state.

    op.States(1).x = 1.26;
  3. 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     

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS