| Contents | Index |
| On this page… |
|---|
Specify Plot for Linearization Result Generate Additional Plots of Linear System |
This example shows how to specify the type of plot generated when you linearize a model in the Linear Analysis Tool.
Open a Simulink model.
sys = 'scdspeedctrl'; open_system(sys);
Open the Linear Analysis Tool for the model.
In the Simulink model window, select Tools > Control Design > Linear Analysis.
Select the plot you want to generate when you linearize the model.
For example, select New Bode in the Plot Result list.

Click
to linearize the model.

A Bode plot of the linearization result appears in the Linear Analysis Tool.
The tool also creates linsys1 in the Linear Analysis Workspace.
This example shows how to generate additional plots of a linear system in the Linear Analysis Tool.
Linearize a model and create a Bode plot of the response, as shown in Specify Plot for Linearization Result.
In the Linear Analysis Tool, click the Linear Analysis tab.
In the Select System list, select the system for which you want to create a new plot.
For example, select linsys1.
In the Select Plot list, select a plot to add.
For example, select New Step.

This action generates Step Plot 1, which shows the step response for linsys1.
This example shows how to add a linear system to an existing plot in the Linear Analysis Tool.
This example assumes that a linear system, linsys1, is plotted in the Linear Analysis Tool. Add another linear system, linsys2, to the plot showing linsys1. This example assumes that linsys1 and linsys2 both exist in the Linear Analysis Workspace.
Click the linear system and drag it onto the existing plot.
Click linsys2 in the Linear Analysis Workspace and drag it onto the existing plot for linsys1.
This example shows how to add multiple linear systems to the same plot in the Linear Analysis Tool.
This example assumes the linear systems linsys1 and plant exist in the Linear Analysis Workspace and the MATLAB Workspace, respectively. Add linsys1 and plant to a Bode plot.
In the Linear Analysis tab, select plant from the Select System list.

In the Select Plot list, select New Bode.

This action generates Bode Plot 1 which shows the Bode response for the plant model.
In the Select System list, choose linsys1.

In the Select Plot list, select Bode Plot 1 in Existing Plots.

The software adds the frequency response of linsys1 to Bode Plot 1.

![]() | Frequency-Domain Validation of Linearization Results | Troubleshooting Linearization | ![]() |

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 |