Is there a way to terminate integration when multiple events are triggered simultaneoulsy?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nick
il 19 Mar 2024
Commentato: Mason McCrary
il 20 Mar 2024
Multiple events can be included in an ODE event function, but it seems there is only capability to detect and act on each event individually. I need a way to be able to terminate integration when multiple events are all triggered simultaneoulsy. E.g., when multiple functions are negative at the same time. Is there any way to do this?
0 Commenti
Risposta accettata
Walter Roberson
il 19 Mar 2024
Adjust the isTerminal flag as all(TheExpressions < 0) or as appropriate.
7 Commenti
Mason McCrary
il 20 Mar 2024
Thank you for your help Torsten, I was very lost! I had it flipped, but we good now.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Function Creation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!