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 /22/CH10/EX10.7 | |
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 '22/CH10/EX10.7')
-rwxr-xr-x | 22/CH10/EX10.7/ch10ex7.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/22/CH10/EX10.7/ch10ex7.sce b/22/CH10/EX10.7/ch10ex7.sce new file mode 100755 index 000000000..6306c0f88 --- /dev/null +++ b/22/CH10/EX10.7/ch10ex7.sce @@ -0,0 +1,19 @@ +//signals and systems
+//state space
+//time domain method to find the state vector
+clc;
+clf;
+s=poly(0,'s');
+A=[s+12 -2/3; 36 s+1];
+y=roots(det(A))
+t=poly(0,'t');
+beta=inv([1 y(1); 1 y(2)])*[%e^-y(1)*t; %e^-y(2)*t];
+disp(beta)
+size(beta)
+W=beta(1)*[1 0;0 1]+ beta(2)*[-12 2/3;-36 -1];
+zir=W*[2;1];
+disp(zir);
+zsr=W*[1/3;1];
+disp(zsr);
+total=zir+zsr;
+disp(total);
|