MaxStep

Specify upper bound on ODE solver step size

Description

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.

Characteristics

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

See Also

SimBiology® property RelativeTolerance

MATLAB® function odeset