Contents

View and Modify Operating Points

View Model Initial Condition in Linear Analysis Tool

This example shows how to view the model initial condition in the Linear Analysis Tool.

  1. Open the Simulink® model.

    sys = 'magball';
    open_system(sys)
  2. In the Simulink Editor, select Analysis > 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 using the Linear Analysis Tool. To edit the initial conditions of the model, change the appropriate parameter of the relevant block in your Simulink model. For example, double-click the magball/Magnetic Ball Plant/Current block to open the Block Parameters dialog box and edit the value in the Initial condition box. Click OK.

Modify Operating Point in Linear Analysis Tool

This example shows how to modify an existing operating point in the Linear Analysis Tool.

  1. Open Simulink model.

    sys = 'magball';
    open_system(sys)

    Opening magball loads the operating points magball_op1 and magball_op2 into the MATLAB® Workspace.

  2. In the Simulink Editor, select Analysis > Control Design > Linear Analysis.

    The Linear Analysis Tool for the model opens.

  3. Choose magball_op1 from the Operating Point list.

  4. Click adjacent to the Operating Point list.

    The magball_op1 editor opens. Use this dialog box to view and edit this operating point.

    Select the state or input Value to edit its value.

    You cannot edit an operating point that you created by trimming a model in the Linear Analysis Tool.

View and Modify Operating Point Object (MATLAB Code)

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     

    Note:   When you modify your Simulink model after creating an operating point object, use update to update your operating point object.

Was this topic helpful?