I use Matlab to solve a differential equation. I want to make ode45 take constant steps, so it always increases 0.01 on the T axis when solving the equation. How to do it?
ode45 sequentially performs optimized, random steps, and I cannot figure out how to get it to execute sequential small steps of 0.01. Here is the code:
options= odeset('Reltol',0.001,'Stats','on'); %figure(1); %clf; init=[xo yo zo]'; tspan=[to tf]; %tspan = t0:0.01:tf; [T,Y]=ode45(name,tspan,init,options);
source share