%% Root Locus Plot of Multiple Dynamic System Models
% For this example, consider sisoModels.mat which contains the following three SISO models:
% sys1 - a transfer function model
% sys2 - a state-space model
% sys3 - a zero-pole-gain model
% Load the models from the mat file.

load('sisoModels.mat','sys1','sys2','sys3');

% Create the root locus plot using rlocus and specify the color for each system. Also add a legend to the root locus plot.

rlocus(sys1,'b',sys2,'k',sys3,'r')
hold on
legend('sys1','sys2','sys3')
hold off

% The figure contains root locus diagrams for all three systems in the same plot. For more plot customization, see rlocusplot.
% Copyright 2019 The MathWorks, Inc.