blob: 927ccf898fa6e6d10691cdb32e38c53657f8041c (
plain)
1
2
3
4
5
6
7
8
9
|
//system with identical eigen values
A=[1 0;0 1] //lamda1=1
B=[2;3] //b11=2 b21=3
S=[B A*B]
if det(S)==0 then
printf("system is uncontrollable")
else
printf("system is contollable")
end
|