Use global variables in ODE45
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!