blob: ae0f6489b3281d7864e314c6932fd064d5fd1856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//caption:check_for_observability_of_system
//example 9.9.1_a
//page 383
A=[0 1;-2 -3]
B=[0;1]
C=[1 1]
P=obsv_mat(A,C);
disp(P,"Observability Matrix=");
d=determ(P)
if d==0
printf("matrix is singular, so system is unobservable");
else
printf("system is observable");
end;
|