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 --- 1151/CH8/EX8.33/example33.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1151/CH8/EX8.33/example33.sce (limited to '1151/CH8/EX8.33') diff --git a/1151/CH8/EX8.33/example33.sce b/1151/CH8/EX8.33/example33.sce new file mode 100755 index 000000000..a347a6fce --- /dev/null +++ b/1151/CH8/EX8.33/example33.sce @@ -0,0 +1,16 @@ +s=%s ; +//create state equation of the following matrix +TFcont=syslin ('c',(s^2+3*s+3)/(s^3+2*s^2+3*s-1)) +SScont=tf2ss(TFcont ) +[Ac ,Bc ,U, ind ]=canon( SScont ( 2 ) , SScont ( 3 ) ) +disp(Ac,"MAtrix A=") +disp(Bc,"MAtrix B=") +s=%s; +A =[0 0 1;1 0 -3;0 1 -2]; +B =[3;3;1]; +x =[0 0 1]; +[r c]= size (A) +p=s*eye(r,c)-A // s*I-A +q=inv(p) +c=x*q*B; +disp(c,"required transfer function =") -- cgit