Skip to Main Content Skip to Search
Product Documentation

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 in the MATLAB documentation.

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

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS