フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to get function handles from sybolic vector of variables for ode45?

1 回表示 (過去 30 日間)
SANDEEP KUMAR R
SANDEEP KUMAR R 2016 年 10 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to solve Xdot=f(X,U). X U are vectors. From symbolic algebra i had derived Xdot.I need to convert this into a suitable function handle for ode45. (dsolve didnt work)

回答 (1 件)

Mischa Kim
Mischa Kim 2016 年 10 月 20 日
Sandeep, use matlabFunction to convert the ODE from symbolic to numeric. You can then use ode45 to solve the differential equation.
  2 件のコメント
SANDEEP KUMAR R
SANDEEP KUMAR R 2016 年 10 月 20 日
編集済み: SANDEEP KUMAR R 2016 年 10 月 20 日
I got the above error
Mischa Kim
Mischa Kim 2016 年 10 月 20 日
Please attach entire code so we can run it.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by