% Problem 5.19

A=[-0.194  0.0628     0      0    0;
    1.306 -2.132   0.9807    0    0;
      0    1.595   -3.149  1.547  0;
      0    0.0355   2.632 -4.257 1.855;
      0   0.00227     0   0.1636 -0.1625]

B=[0 0.0632 0.0838 0.1004 0.0063;
   0   0   -0.1396 -0.206 -0.0128]'

% Controllability matrix
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

