How to pass extra parameters to ODE event function?

30 visualizaciones (últimos 30 días)
ahmet akh
ahmet akh el 3 de Feb. de 2023
Editada: ahmet akh el 3 de Feb. de 2023
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.

Respuesta aceptada

Torsten
Torsten el 3 de Feb. de 2023
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

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by