From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 122/CH2/EX2.a.11/exaA_2_11.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 122/CH2/EX2.a.11/exaA_2_11.sce (limited to '122/CH2/EX2.a.11') diff --git a/122/CH2/EX2.a.11/exaA_2_11.sce b/122/CH2/EX2.a.11/exaA_2_11.sce new file mode 100755 index 000000000..7a9edcec9 --- /dev/null +++ b/122/CH2/EX2.a.11/exaA_2_11.sce @@ -0,0 +1,17 @@ +// Example A-2-11 +// Conversion from state space model to transfer function model +// for a Single Input Single Output System + +clear; clc; close; + +// Please edit the path below +// cd "/your code directory/"; +// exec("transferf.sci"); + +A = [-1 1 0; 0 -1 1; 0 0 -2]; +B = [0; 0; 1]; +C = [1 0 0]; +D = [0]; + +Htf = transferf(A,B,C,D); // Htf is the tranfer function +disp(Htf,'Htf ='); // polynomial. ie. Htf = num / den -- cgit