Main Content

Extrapolation order

Extrapolation order for ode14x fixed-step solver

Model Configuration Pane: Solver


The ode14x solver uses extrapolation to compute the model states for the next time step using the states in the current time step. Use this parameter to specify the order of extrapolation.


To enable this parameter when the solver Type is Fixed-step, from the Solver list, select ode14x (extrapolation).

To enable this parameter when the solver Type is Variable-step:

  • For the Solver parameter, select odeN (Nonadaptive).

  • For the Integration method parameter, select ode14x (extrapolation).


4 (default) | 3 | 2 | 1

Higher-order extrapolation is more accurate but also more computationally intensive. The number you select corresponds to the order of extrapolation used. For example, selecting 3 specifies third-order extrapolation.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: ExtrapolationOrder
Type: scalar number
Value: 1 | 2 | 3 | 4
Default: 4

Version History

Introduced before R2006a