diff options
Diffstat (limited to '1499/CH7/EX7.30/q30.sce')
-rw-r--r-- | 1499/CH7/EX7.30/q30.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1499/CH7/EX7.30/q30.sce b/1499/CH7/EX7.30/q30.sce new file mode 100644 index 000000000..ec2372e67 --- /dev/null +++ b/1499/CH7/EX7.30/q30.sce @@ -0,0 +1,17 @@ +A=[-1 0;1 -2];
+B=[1;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;
+
+
+
+
|