blob: 14abd3a8807835f67e6541899dd5d3b07c489232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//caption:check_for_contrallability_of_system
//example 11_37
//page 512
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;
|