% Chapter 11: Figure 11.30
%
%   Satellite controllability with a tangential thruster only 
%   (i.e. failed radial thruster).
%
w=0.0011;
A=[0 1 0  0;3*w^2 0 0 2*w;0 0 0 1;0 -2*w 0 0];
B2=[0;0;0;1];
Pc=ctrb(A,B2);
n=det(Pc); 
if abs(n) < eps
 disp('Satellite is uncontrollable with tangential thruster only!')
else
 disp('Satellite is controllable with tangential thruster only!')
end