i'm new to state space modelling. while i try to execute A,B,C,D,E parameters using idss, it displays the error as " The sizes of state-space parameter matrices must be consistent with size and order of the model. "
The code i used in m file are as follows
A=[-1/tg1 0 -1/(tg1*r1) 0 0 0 0; 1/tt1 -1/tt1 0 0 0 0 0; 0 kp1/tp1 -1/tp1 -kp1/tp1 0 0 0; 0 0 t12 0 0 0 -t12; 0 0 0 0 -1/tg2 0 -1/(r2*tg2); 0 0 0 0 1/tt2 -1/tt2 0; 0 0 0 -(a12*kp2)/tp2 0 kp2/tp2 -1/tp2] B=[1/tg1 0 0 0 0 0 0; 0 0 0 0 1/tg2 0 0]' C1=[0 0 1 0 0 0 0] C2=[0 0 0 0 0 0 1] D=0 K=[0 0 -kp1/tp1 0 0 0 0; 0 0 0 0 0 0 -kp2/tp2]' SYS1 = idss(A,B,C1,D,K) SYS2 = idss(A,B,C2,D,K)
Can anyone help me?
Thanks in advance.
Best Answer