Professional Documents
Culture Documents
Controlsys Rootlocus
Controlsys Rootlocus
2],[1 3]),[1 4]); % conv command does the product %of two polynomials here prdt of (s+2)(s+3) and (s+4) rlocus(num,den); v=[-5 5 -4 4]; axis(v);
Root Locus 4
1 Imaginary Axis
-1
-2
-3
-4 -5
-4
-3
-2
-1
0 Real Axis
clc
clear all %G(s)H(s)=k(s^2-4s+20)/((s+2)(s+4)) num=[1 -4 20];% means numerator coeff s^2 has a coeff 1, s has coeff -4 %and the constant is 20 den=conv([1 2],[1 4]); % conv command does the product %of two polynomials here prdt of (s+2)and (s+4) rlocus(num,den); v=[-5 5 -5 5]; axis(v);
Root Locus 5 4 3 2 1 0 -1 -2 -3 -4 -5 -5
Imaginary Axis
-4
-3
-2
-1
0 Real Axis
%G(s)H(s)=k/(s(s+2)(s^2+2s+2)) num=[1]; den=conv([1 2 0],[1 2 2]); % conv command does the product %of two polynomials here prdt of (s^2+2s) and (s^2+2s+2) rlocus(num,den); v=[-4 4 -4 4]; axis(v); % % axis('square');
Root Locus 4
1 Imaginary Axis
-1
-2
-3
-4 -4
-3
-2
-1
0 Real Axis
clc clear all %G(s)H(s)=k/(s(s+4)(s^2+2s+2)) num=[1]; den=conv([1 4 0],[1 2 2]); % conv command does the product %of two polynomials here prdt of (s^2+4s) and (s^2+2s+2) rlocus(num,den); v=[-4 4 -4 4]; axis(v); % % axis('square');
Root Locus 4
1 Imaginary Axis
-1
-2
-3
-4 -4
-3
-2
-1
0 Real Axis
%G(s)H(s)=k/(s(s^2+4s+13)) num=[1]; den=conv([0 1 0],[1 4 13]); % conv command does the product %of two polynomials here prdt of (s) and (s^2+4s+13) rlocus(num,den); v=[-4 4 -4 4]; axis(v); % % axis('square');
Root Locus 4
1 Imaginary Axis
-1
-2
-3
-4 -4
-3
-2
-1
0 Real Axis