OK, so I have re read the above and realised that it is not very clear.
The crux of the problem is that I am solving a system of differential equations using ODE 45. The way I thought seemed logical was to solve for an initial condition, (i.e. gernrate data to be stored in y) that will then be used in the next iteration of the algorithm.
I am basically not sure how to use the y object in the main script with a further call of ode45, and am hoping there is a conventional way in which this sort of thing is achieved
Cheers!
The crux of the problem is that I am solving a system of differential equations using ODE 45. The way I thought seemed logical was to solve for an initial condition, (i.e. gernrate data to be stored in y) that will then be used in the next iteration of the algorithm.
I am basically not sure how to use the y object in the main script with a further call of ode45, and am hoping there is a conventional way in which this sort of thing is achieved
Cheers!