summaryrefslogtreecommitdiff
path: root/29/CH9/EX9.9.1.a/exa9_9_1_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '29/CH9/EX9.9.1.a/exa9_9_1_a.sce')
-rwxr-xr-x29/CH9/EX9.9.1.a/exa9_9_1_a.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/29/CH9/EX9.9.1.a/exa9_9_1_a.sce b/29/CH9/EX9.9.1.a/exa9_9_1_a.sce
new file mode 100755
index 000000000..ae0f6489b
--- /dev/null
+++ b/29/CH9/EX9.9.1.a/exa9_9_1_a.sce
@@ -0,0 +1,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; \ No newline at end of file