Passing parameters to ODE solver event functions
5 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Steven Lord
on 11 Oct 2022
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 Comments
See Also
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!