Passing parameters to ODE solver event functions

조회 수: 7 (최근 30일)
Noob Tubem
Noob Tubem 2022년 10월 11일
답변: Steven Lord 2022년 10월 11일
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!

답변 (1개)

Steven Lord
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.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by