フィルターのクリア

State Space modelling from an ODE

34 ビュー (過去 30 日間)
Teanna Mills
Teanna Mills 2019 年 3 月 15 日
コメント済み: Star Strider 2019 年 12 月 12 日
How would I find the state variable description and transfer function of the 3rd order system of the following on MATLAB?

採用された回答

Star Strider
Star Strider 2019 年 3 月 15 日
The easiest way is to let the Symbolic Math Toolbox do the heavy lifting:
syms y(t) u(t) t
Dy = diff(y);
D2y = diff(y,2);
D3y = diff(y,3);
DEq = D3y + 6*D2y + 11*Dy + 6*y == 6*u;
[SS,Sbs] = odeToVectorField(DEq)
producing:
SS =
Y[2]
Y[3]
6*u(t) - 6*Y[1] - 11*Y[2] - 6*Y[3]
Sbs =
y
Dy
D2y
The ‘Sbs’ output simply tells you the substitutions the solver made, so for example ‘Y[1]=y’.
I’m sure you can take it from there.
  2 件のコメント
jokn buntue
jokn buntue 2019 年 12 月 12 日
Can you please explain how to convert the results of odeToVectorField to the A,B,C,D matrices?
Thanks.
Star Strider
Star Strider 2019 年 12 月 12 日
@jokn buntue — The ‘SS’ matrix is essentially a companion-form matrix, so eliminating the ‘6*u(t)’ term, it is the ‘A’ matrix. The ‘6*u(t)’ term becomes part of the ‘B’ matrix (vector here, since this is a SISO system).
That should get you started.

サインインしてコメントする。

その他の回答 (1 件)

djedoui Nassim
djedoui Nassim 2019 年 3 月 15 日
Hey
You can follow this mathematical changement using your example,
State space.gif

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by