This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Maximum order


Select the order of the numerical differentiation formulas (NDFs) used in the ode15s solver.

Category: Solver


Default: 5


Specifies that the solver uses fifth order NDFs.


Specifies that the solver uses first order NDFs.


Specifies that the solver uses second order NDFs.


Specifies that the solver uses third order NDFs.


Specifies that the solver uses fourth order NDFs.


  • Although the higher order formulas are more accurate, they are less stable.

  • If your model is stiff and requires more stability, reduce the maximum order to 2 (the highest order for which the NDF formula is A-stable).

  • As an alternative, you can try using the ode23s solver, which is a lower order (and A-stable) solver.


This parameter is enabled only if Solver is set to ode15s.

Command-Line Information

Parameter: MaxOrder
Type: integer
Value: 1 | 2 | 3 | 4 | 5
Default: 5

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics