Is there a way to terminate integration when multiple events are triggered simultaneoulsy?
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2024 年 3 月 19 日
Adjust the isTerminal flag as all(TheExpressions < 0) or as appropriate.
7 件のコメント
Mason McCrary
2024 年 3 月 20 日
Thank you for your help Torsten, I was very lost! I had it flipped, but we good now.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!