Skip to Main Content Skip to Search
Product Documentation

Bode Response of Simulink Model

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

 Code Alternative

  1. Open Simulink model.

    sys = 'watertank';
    open_system(sys)

    The Water-Tank System block represents the plant in this control system and includes all of the system nonlinearities.

  2. In the Simulink model window, select Tools > Control Design > Linear Analysis.

    This action opens the Linear Analysis Tool for the model.

  3. In the Simulink model window, define the portion of the model to linearize:

    • Right-click the PID Controller block output signal, which is the input to the plant. Select Linearization Points > Input Point.

    • Right-click the Water-Tank System output signal, and select Linearization Points > Output Point.

    The linearization I/O markers appear in the model.

  4. Right-click the Water-Tank System output signal and select Linearization Points > Open Loop.

    This command removes the effects of the feedback signal on the linearization without changing the model operating point. The loop opening marker appears in the model.

    In the Exact Linearization tab of the Linear Analysis Tool, click for the Analysis I/Os list to see the model linearization input and output points.

      Note   Do not open the loop by manually removing the feedback signal from the model. Removing the signal manually changes the operating point of the model.

  5. Click for the Operating Point list to see the selected operating point. By default, the model initial condition is selected as the operating point.

    This action launches the Model Initial Condition Viewer.

  6. In the Plot linear result in a list, select Bode response plot.

  7. Click to linearize the model.

    The Bode plot of the linearized system appears.

    This Bode plot looks like a stable first-order response, as expected.

  8. Close Simulink model.

    bdclose(sys);

 Related Examples

 More About

  


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