blob: 72f9d6ea53a301a292e9821c16ee405fe020f02b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//function//
A=[-2 1;0 -3]
B=[4;1]
C=[1 0]
[O]=obsv_mat(A,C);
disp(O,"Observability Matrix=")
//To Check Whether the matrix(Cc)is singular i.e determint of Cc=0
if determ(O)==0;
printf("Since the matrix is Singular, the system is not Observable \n");
else;
printf("The system is Observable \n")
end;
|