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

조회 수: 4 (최근 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?

채택된 답변

Walter Roberson
Walter Roberson 2024년 3월 19일
Adjust the isTerminal flag as all(TheExpressions < 0) or as appropriate.
  댓글 수: 7
Mason McCrary
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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by