Passing parameters to ODE solver event functions
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Steven Lord
le 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 commentaires
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!