summaryrefslogtreecommitdiff
path: root/104/CH5/EX5.20/5_20.sce
blob: 179a185bb399373b651cb9ab7d253cbd9ee77877 (plain)
1
2
3
4
5
6
7
8
9
//controllability
A=[1 2 -1;0 1 0;1 -4 3]
B=[0;0;1]
S=[B A*B A^2*B]
if det(S)==0 then
    printf("system is uncontrollable")
else 
    printf("system is contollable")
    end