%% Root Locus Plot of Dynamic System
% For this example. plot the root-locus of the following SISO dynamic system:
% sys(s) = \frac{{2{s^2} + 5s + 1}}{{{s^2} + 2s + 3}}.

sys = tf([2 5 1],[1 2 3]);
rlocus(sys)

% The poles of the system are denoted by x, while the zeros are denoted by o on the root locus plot. You can use the menu within the generated root locus plot to add grid lines, zoom in or out, and also invoke the Property Editor to customize the plot.
% For more plot customization options, use rlocusplot.
% Copyright 2015 The MathWorks, Inc.