Passing parameters to ODE solver event functions
조회 수: 7 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Steven Lord
2022년 10월 11일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!