Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
SANDEEP KUMAR R
SANDEEP KUMAR R am 20 Okt. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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)

Antworten (1)

Mischa Kim
Mischa Kim am 20 Okt. 2016
Sandeep, use matlabFunction to convert the ODE from symbolic to numeric. You can then use ode45 to solve the differential equation.
  2 Kommentare
SANDEEP KUMAR R
SANDEEP KUMAR R am 20 Okt. 2016
Bearbeitet: SANDEEP KUMAR R am 20 Okt. 2016
I got the above error
Mischa Kim
Mischa Kim am 20 Okt. 2016
Please attach entire code so we can run it.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by