I want to fix the time step for my ode45 function. The code which I am using is as follows:
dt = 0.02; tf = 600; t = dt:dt:tf; y0 = zeros(14,1); [tout,yout] = ode45(@OC3_odefull,t,y0);
When I run my code, I have no control over the time step size and ode45 uses an adaptive time step. Is there any way that I can force ode45 to use the time step that I want?
Best Answer