Passing parameters to ODE solver event functions
5 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to create an event function to which I can pass a parameter that is not part of the ODE function itself, such that I do not have to change the event function whenever I wish to change the stopping conditions. I found an identical question here but that thread is over ten years old and those solutions do not work for me.
Thanks!
0 个评论
回答(1 个)
Steven Lord
2022-10-11
The options listed on this documentation page, which are basically the same as the ones on the question to which you linked, are the approaches I'd use. Can you show us how you tried implementing those solutions? If so we may be able to suggest how to modify the code to get your implementation working.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!