Contents

Plant Linearization

This example shows how to use the Linear Analysis Tool to linearize a plant subsystem at the model operating point. The model operating point consists of the model initial state values and input signals.

Use this simpler approach instead of defining linearization I/O points when the plant is a subsystem or a block.

 Code Alternative

  1. Open a Simulink® model.

    sys = 'watertank';
    open_system(sys)
  2. Open the Linear Analysis Tool.

    In the Simulink model window, right-click the Water-Tank System block and select Linear Analysis > Linearize Block.

  3. View the block selected for linearization.

    Click adjacent to the Analysis I/Os drop-down menu.

    The Water Tank System block is highlighted.

  4. In the Plot Result drop-down menu, select New Bode.

  5. Linearize the plant.

    Click .

    The Bode plot of the linearized plant appears.

    The linearization result, linsys1, appears in the Linear Analysis Workspace.

  6. View the resulting linear plant model.

    In the Linear Analysis tab, choose linsys1 from the Select Result list. In the Select Report list, choose Show result details.

    The Linearization results dialog box for linsys1 opens.

      Tip   Drag and drop linsys1 from the Linear Analysis Workspace to the MATLAB Workspace to export it to the base workspace for further analysis.

  7. Close the Simulink model.

    bdclose(sys);
Was this topic helpful?