From: Rakib on
Hi,

For a differential equation of the form:

dF/dh = Expression1 - Expression2 + Expression3/deltah

where deltah is the integration step size,

How do I use ode15s (which integrates with a variable step size). If I use it as below:

[TOUT,YOUT] = ODE15S(ODEFUN,[0:deltah:TSPAN],Y0), and then use deltah in the ode function,

will this solve the problem? How erroneous will it be, if not?