diff options
Diffstat (limited to '1499/CH7/EX7.33/q33.sce')
-rw-r--r-- | 1499/CH7/EX7.33/q33.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1499/CH7/EX7.33/q33.sce b/1499/CH7/EX7.33/q33.sce new file mode 100644 index 000000000..819968c37 --- /dev/null +++ b/1499/CH7/EX7.33/q33.sce @@ -0,0 +1,16 @@ +A=[-2 0;1 -1];
+B=[0;1];
+
+[r c]=size(A)
+I=eye(r,c)
+P=cont_mat(A,B);
+disp(P,"Controllability Matrix=")
+d=det(P)
+if d==0
+ printf("matrix is singular, so system is uncontrollable");
+else
+ printf("system is controllable");
+end;
+
+
+
|