% myrlocus.m

% based on class example (~question 7.6)

N = [1 3];
D = [1 -2 0];
G = tf (N, D)
rlocus (G)

% Find breakaway point info
% from:  N*D' - N'*D = 0
b = roots ([1 6 -6])
s = b;
K = -s.*(s-2) ./ (s+3)
% alternative method:
%Ks = '-s*(s-2) / (s+3)'
%s = b(1)
%K1 = eval (Ks)
%s = b(2)
%K1 = eval (Ks)