% FILE: rootLocusIntuitive1_0_011719a.m
% DATE: 01/17/19 16.03
% AUTH: P.Oh
% DESC: Root Locus plot for an intuitive system

% An OLTF for a hypothetical first order DC motor

%             5   
%   G(s) = --------
%           (s+10) 


% Define OLTF

golTfNum = [5];
golTfDen = [1 10];

golTf = tf(golTfNum, golTfDen)

% In factored (i.e. zero and pole) form

% zpk(G)

% Display root locus for OLTF lag compensated version.  Use rlocusplot so can add title etc

handleRootLocusPlot = rlocusplot(golTf);
plotOptions = getoptions(handleRootLocusPlot);
plotOptions.Title.String = 'RL for first order DC motor';
% plotOptions.XLim = [-4 2];
% plotOptions.YLim = [-3 3];
setoptions(handleRootLocusPlot, plotOptions);


