www.gusucode.com > control 案例程序 matlab源码代码 > control/RootLocusPlotOfDynamicSystemExample.m
%% Root Locus Plot of Dynamic System % Plot the root-locus of the following system. %% % % $$h(s) = \frac{{2{s^2} + 5s + 1}}{{{s^2} + 2s + 3}}.$$ % %% % Copyright 2015 The MathWorks, Inc. h = tf([2 5 1],[1 2 3]); rlocus(h) %% % You can use the right-click menu for rlocus to add grid lines, zoom in or % out, and invoke the Property Editor to customize the plot. Also, click % anywhere on the curve to activate a data marker that displays the gain % value, pole, damping, overshoot, and frequency at the selected point.