Use global variables in ODE45
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!