How to pass extra parameters to ODE event function?

31 ビュー (過去 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 Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by