blob: 40344a3e4f48896c115e713783f9d59542795174 (
plain)
1
2
3
4
5
6
7
8
9
10
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")
|