How to pass extra parameters to ODE event function?

조회 수: 28 (최근 30일)
ahmet akh
ahmet akh 2023년 2월 3일
편집: ahmet akh 2023년 2월 3일
Hello All,
Are the any way to pass some extra parameters to ODE event? So my event also is a mathematical expression which include some system parameters.

채택된 답변

Torsten
Torsten 2023년 2월 3일
In the same way as you pass parameters to other functions:
options = odeset('Events',@(t,y)myEventsFcn(t,y,params));
function [value,isterminal,direction] = myEventsFcn(t,y,params)
...
end

추가 답변 (0개)

카테고리

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