This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Specify upper bound on ODE solver step size


MaxStep is a property of the SolverOptions property, which is a property of a configset object. This property specifies the bounds on the size of the time steps. MaxStep is available only for ODE solvers (ode15s, ode23t, ode45, and sundials).

If the differential equation has periodic coefficients or solutions, it might be a good idea to set MaxStep to some fraction (such as 1/4) of the period. This guarantees that the solver does not enlarge the time step too much and step over a period of interest. For more information on MaxStep, see odeset in the MATLAB® documentation.


Applies toObject: SolverOptions
Data typePositive scalar or empty
Data valuesDefault value is [] (empty), which is equivalent to setting MaxStep to infinity.

See Also

SimBiology® property RelativeTolerance

MATLAB function odeset

Was this topic helpful?