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 /122/CH2/EX2.a.12 | |
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 '122/CH2/EX2.a.12')
-rwxr-xr-x | 122/CH2/EX2.a.12/exaA_2_12.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/122/CH2/EX2.a.12/exaA_2_12.sce b/122/CH2/EX2.a.12/exaA_2_12.sce new file mode 100755 index 000000000..8000082a9 --- /dev/null +++ b/122/CH2/EX2.a.12/exaA_2_12.sce @@ -0,0 +1,18 @@ +// Example A-2-12 +// Conversion from state space model to transfer function model +// for a multiple input multiple output system + +clear; clc; close; + +// Please edit the path below +// cd "/your code directory/"; +// exec("transferf.sci"); + +A = [0 1; -25 -4]; +B = [1 1; 0 1]; +C = [1 0; 0 1]; +D = [0 0; 0 0]; + +Htf = transferf(A,B,C,D) // Htf is the tranfer function matrix, +disp(Htf,'Htf ='); // with four transfer functions - + // Htf(1,1),Htf(1,2),Htf(2,1),Htf(2,2); |