summaryrefslogtreecommitdiff
path: root/29/CH9/EX9.10.5/exa9_10_5.sce
blob: 94c55aa93d1d92ebd8ee484a95e2877d0caae46b (plain)
1
2
3
4
5
6
7
8
9
10
11
//caption:obtain_state_matrix
//example 9.10.5
//page 388
s=%s;
g=(s+3)/(s^2+3*s+4);
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")