summaryrefslogtreecommitdiff
path: root/29/CH9/EX9.10.9/exa9_10_9.sce
blob: 964be66670a0a8016bee3d25e55aab03e67adbd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
//caption:obtain_state_matrix
//example 9.10.9
//page 392
s=%s;
g=(10*(s+3))/((s+4)*(s+2)^2);
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")