blob: 5c78cd19ec6d07caa87b3d455e9f4d5ffb86516b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//caption:obtain_state_matrix
//example 9.10.7
//page 390
s=%s;
g=(s+3)/((s+1)*(s+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")
|