I am trying to solve a set of ODEs in matlab (I guess ODE45 is the right tool) that have time-varying parameters. Here's an illustration:
x' = x/y+z*a(t)
y' = y*x+a(t)/y+b(t)
z' = x*y + c(t)/z + d
I have the data for a(t), b(t) and c(t) given in a lookup table prepared beforehand. d is something that has to be calculated from external data each itteration.
I;m dealing with solving the equations of motion of a system. How do I do that? Thanks!