%421 Project
%Root Loci

close all
clear all

% New System Root Locus
% 6th Order TF
% Primary authors: Kacie Burton, Kevin Dahya, Mellisa Glaser, Kerem Koray
% Wael Nour, and Tanya Tunistra
% AAE 421 Design Project Spring 2001

%Q(s)/DeltaE(s)
numq=[0 0 0 -2.655e004 -1.279e005 -5.435e004 7.572e-009];
denq=[1 45.87 1188 1.337e004 4.018e004 1.607e004 3206];
Q1=tf(numq,denq)
figure(1)
pzmap(Q1)
title('Poles and Zeros of Q(s)/DeltaE(s) for Improved System')
figure(2)
rlocus(numq,denq)

grid on
title('Root Locus Q(s)/DeltaE(s) for Improved System')

%R(s)/DeltaR(s)
numr=[0 0 0 -4.712e004 -8.68e004 -1073 -1.098e005];
denr=[1 42.81 1065 1.928e004 3.328e004 3649 3.814e004];
R1=tf(numr,denr)
figure(3)
pzmap(R1)
title('Poles and Zeros of R(s)/DeltaR(s) for Improved System')
figure(4)
rlocus(numr,denr)

grid on
title('Root Locus R(s)/DeltaR(s) for Improved System')


%P(s)/DeltaA(s)
nump=[0 0 0 2.731e006 2.612e006 1.699e006 6.656e-009];
denp=[1 42.81 1065 2786 2903 3273 -292.2];
P1=tf(nump,denp)
figure(5)
pzmap(P1)
title('Poles and Zeros of P(s)/DeltaA(s) for Improved System')
figure(6)
rlocus(nump,denp)

grid on 
axis equal
title('Root Locus P(s)/DeltaA(s) for Improved System')
