summaryrefslogtreecommitdiff
path: root/29/CH11/EX11.34/exa11_34.sce
diff options
context:
space:
mode:
Diffstat (limited to '29/CH11/EX11.34/exa11_34.sce')
-rwxr-xr-x29/CH11/EX11.34/exa11_34.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/29/CH11/EX11.34/exa11_34.sce b/29/CH11/EX11.34/exa11_34.sce
new file mode 100755
index 000000000..40344a3e4
--- /dev/null
+++ b/29/CH11/EX11.34/exa11_34.sce
@@ -0,0 +1,11 @@
+//caption:obtain_state_matrix
+//example 11_34
+//page 509
+s=%s;
+g=(s^2+s+2)/(s^3+9*s^2+26*s+24);
+CL=syslin('c',g);
+disp(CL,"C(s)/R(s)=");
+SS=tf2ss(CL)
+[Ac,Bc,U,ind]=canon(SS(2),SS(3))
+disp(SS,"state space matrix=")
+disp(Ac,"Ac",Bc,"Bc",U,"U",ind,"ind") \ No newline at end of file