%421 Project
%Root Loci
% Primary authors: Kacie Burton, Kevin Dahya, Mellisa Glaser, Kerem Koray
% Wael Nour, and Tanya Tunistra
% AAE 421 Design Project Spring 2001

close all
clear all


%4th Order TF

%Q(s)/DeltaE(s)
numq=[0 -27.95 -134.6 -57.21 1.47E-14];
denq=[1 5.869 3.448 0.2688 3.375];
Q1=tf(numq,denq)
figure(1)
pzmap(Q1)
title('Poles and Zeros of Q(s)/DeltaE(s)')
figure(2)
rlocus(numq,denq)
grid on
title('Root Locus Q(s)/DeltaE(s)')

%R(s)/DeltaR(s)
numr=[0 -49.65 -91.37 -1.13 -115.6];
denr=[1 2.806 2.911 3.458 -.3076];
R1=tf(numr,denr)
figure(3)
pzmap(R1)
title('Poles and Zeros of R(s)/DeltaR(s)')
figure(4)
rlocus(numr,denr)
grid on
title('Root Locus R(s)/DeltaR(s)')


%P(s)/DeltaA(s)
nump=[0 2875 2749 1788 -6.558e-13];
denp=[1 2.806 2.911 3.458 -.3076];
P1=tf(nump,denp)
figure(5)
pzmap(P1)
title('Poles and Zeros of P(s)/DeltaA(s)')
figure(6)
rlocus(nump,denp)
grid on 
title('Root Locus P(s)/DeltaA(s)')
