diff options
Diffstat (limited to '1499/CH7/EX7.31/q31.sce')
-rw-r--r-- | 1499/CH7/EX7.31/q31.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1499/CH7/EX7.31/q31.sce b/1499/CH7/EX7.31/q31.sce new file mode 100644 index 000000000..cf8076e50 --- /dev/null +++ b/1499/CH7/EX7.31/q31.sce @@ -0,0 +1,16 @@ +A=[1 -1;1 -1];
+B=[0;1];
+
+
+
+C=[1 0];
+P=obsv_mat(A,C);
+disp(P,"Observability Matrix=");
+d=det(P)
+if d==0
+ printf("matrix is singular, so system is unobservable");
+else
+ printf("system is observable");
+end;
+
+
|