summaryrefslogtreecommitdiff
path: root/29/CH9/EX9.8.1/exa9_8_1.sce
blob: cddb6f97956b3cb858def56e8d2edd1d98c5c46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//caption:check_for_contrallability_of_system
//example 9.8.1
//page 381
A=[1 1;0 -1]
B=[1;0]
P=cont_mat(A,B);
disp(P,"Controllability Matrix=");
d=determ(P)
if d==0
  printf("matrix is singular, so system is uncontrollable");
else
  printf("system is controllable");
end;