% Problem 5.12
A=[0  0.40  0.000   0.00;
   0  0.00  0.349   0.00;
   0 -5.24 -4.650   2.62;
   0  0.00  0.000 -10.00];

B=[0; 0; 0; 10];

Co=ctrb(A,B)
r_Co=rank(Co)
if r_Co < size(A,1)
  disp('System is not controllable!')
else
  disp('System is controllable')
end