直接用ss和tf函式就可以了,例如: >> G=tf([1 2],[1 2 3]) Transfer function: s + 2 ------------- s^2 + 2 s + 3 >> G1=ss(G) a = x1 x2 x1 -2 -1.5 x2 2 0 b = u1 x1 2 x2 0 c = x1 x2 y1 0.5 0.5 d = u1 y1 0 Continuous-time model. >> G2=tf(G1) Transfer function: s + 2 ------------- s^2 + 2 s + 3 >> whos Name Size Bytes Class Attributes G 1x1 2494 tf G1 1x1 2385 ss G2 1x1 2494 tf
直接用ss和tf函式就可以了,例如: >> G=tf([1 2],[1 2 3]) Transfer function: s + 2 ------------- s^2 + 2 s + 3 >> G1=ss(G) a = x1 x2 x1 -2 -1.5 x2 2 0 b = u1 x1 2 x2 0 c = x1 x2 y1 0.5 0.5 d = u1 y1 0 Continuous-time model. >> G2=tf(G1) Transfer function: s + 2 ------------- s^2 + 2 s + 3 >> whos Name Size Bytes Class Attributes G 1x1 2494 tf G1 1x1 2385 ss G2 1x1 2494 tf