From: Windell on
Hi,

I'm attempting to solve a system of equations using ode45. One of the functions has values that are dependent on the current time. Does anyone know how I can access the current time of the solver so I can evaluate the function between steps of the solver?

Thanks,
Windell
From: Torsten Hennig on
> Hi,
>
> I'm attempting to solve a system of equations using
> ode45. One of the functions has values that are
> dependent on the current time. Does anyone know how I
> can access the current time of the solver so I can
> evaluate the function between steps of the solver?
>
> Thanks,
> Windell

The function in which you calculate dy/dt for the
ODE solver has the current time in its parameter list ...

Best wishes
Torsten.