How to get function handles from sybolic vector of variables for ode45?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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)
Answers (1)
Mischa Kim
on 20 Oct 2016
0 votes
Sandeep, use matlabFunction to convert the ODE from symbolic to numeric. You can then use ode45 to solve the differential equation.
2 Comments
SANDEEP KUMAR R
on 20 Oct 2016
Edited: SANDEEP KUMAR R
on 20 Oct 2016
Mischa Kim
on 20 Oct 2016
Please attach entire code so we can run it.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!