Using ode45 in a for Cycle: Adding Parameters to odefun

1 reply · 4K views · last reply
bnsm
Messages
6
Reaction score
0
Hi guys,


I want to run a for cycle with ode45 inside. However, some parameters that I define in odefun (the differential equation in order to dy/dt, for instance) assume different values in each iteration of that cycle.

I find help examples showing odefun only receiving t and y... Is there any way to add more input parameters to odefun?



Thanks!