diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /62/CH7/EX7.35 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '62/CH7/EX7.35')
-rwxr-xr-x | 62/CH7/EX7.35/ex_7_35.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/62/CH7/EX7.35/ex_7_35.sce b/62/CH7/EX7.35/ex_7_35.sce new file mode 100755 index 000000000..b2362769d --- /dev/null +++ b/62/CH7/EX7.35/ex_7_35.sce @@ -0,0 +1,19 @@ +clc;
+A=[0 1 ;-1/8 3/4];
+B=[0;1];
+C=[-1/8 3/4];
+D=[1];
+Mc=[B A*B];
+if (det(Mc)<>0) then
+ disp("and is controllable",rank(Mc),"Mc has a rank of")
+else
+ disp("and is uncontrollable",rank(Mc),"Mc has a rank of");
+end
+Mo=[C;C*A];
+if (det(Mo)<>0) then
+ disp("and is observable",rank(Mo),"Mo has a rank of")
+else
+ disp("and is unobservable",rank(Mo),"Mo has a rank of");
+end
+Hz=ss2tf(syslin('d',A,B,C,D));
+disp(Hz,"H(z)=");
\ No newline at end of file |