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 to||Object: SolverOptions|
|Data type||Positive scalar or empty|
|Data values||Default value is  (empty), which is equivalent to setting MaxStep to infinity.|