Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
SANDEEP KUMAR R
SANDEEP KUMAR R el 20 de Oct. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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)

Respuestas (1)

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

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by