Use global variables in ODE45
Mostrar comentarios más antiguos
Hello everyone!
I need to solve a differential equation where one of the functions is defined by me. This function needs to know the previous value in input and output of the function itself to calculate the next point.
When I use ODE45 to solve the differential equation with my function in it the results are uncomprehensible at best, my question is: anyone knows if the declaration of global variable still works when using ODE45?
Thank you and best regards,
Edoardo.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!