summaryrefslogtreecommitdiff
path: root/29/CH12/EX12.54/exa12_54.sce
diff options
context:
space:
mode:
Diffstat (limited to '29/CH12/EX12.54/exa12_54.sce')
-rwxr-xr-x29/CH12/EX12.54/exa12_54.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/29/CH12/EX12.54/exa12_54.sce b/29/CH12/EX12.54/exa12_54.sce
new file mode 100755
index 000000000..0a3bdd501
--- /dev/null
+++ b/29/CH12/EX12.54/exa12_54.sce
@@ -0,0 +1,11 @@
+//caption:obtain_state_matrix
+//example 12_54
+//page 583
+s=%s;
+g=5*(s+2)/(s*(s+1)*(s+5));
+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