summaryrefslogtreecommitdiff
path: root/1151/CH8/EX8.21/example21.sce
blob: fa03cc76f8f2df1ee235c91127b9b0c9016c746e (plain)
1
2
3
4
5
6
7
8
9
10
11
//check the obersebability of the system
A=[-1 0;0 -2]
C=[1 1]
g= obsv_mat (A,C);
disp (g," Observability Matrix=");
i= det(g)
if i ==0
printf ("matrix is singular, so the system is unobservable");
else
printf (" system is observable ");
end