summaryrefslogtreecommitdiff
path: root/773/CH17/EX17.13/17_13.sci
diff options
context:
space:
mode:
Diffstat (limited to '773/CH17/EX17.13/17_13.sci')
-rwxr-xr-x773/CH17/EX17.13/17_13.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/773/CH17/EX17.13/17_13.sci b/773/CH17/EX17.13/17_13.sci
new file mode 100755
index 000000000..6f02d56d4
--- /dev/null
+++ b/773/CH17/EX17.13/17_13.sci
@@ -0,0 +1,12 @@
+//function//
+A=[3 0;2 4]
+B=[0;1]
+Cc=cont_mat(A,B);
+disp(Cc,"Controlability Matrix=")
+//To Check Whether the matrix(Cc) is singular i.e determint of Cc=0
+if determ(Cc)==0;
+ printf("Since the matrix is Singular, the system is not controllable \n");
+else;
+ printf("The system is controllable \n")
+ end;
+