How to pass extra parameters to ODE event function?
30 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
Réponse acceptée
Torsten
le 3 Fév 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
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!