Filter löschen
Filter löschen

Is there a way to terminate integration when multiple events are triggered simultaneoulsy?

5 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Mär. 2024
Adjust the isTerminal flag as all(TheExpressions < 0) or as appropriate.
  7 Kommentare
Mason McCrary
Mason McCrary am 20 Mär. 2024
Thank you for your help Torsten, I was very lost! I had it flipped, but we good now.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by