Hi Carey, ode45() picks its own time steps to do the integration. However, you can prescribe the times at which you want integration results. E.g. use
tspan = linspace(0,40,41);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!