Initial step size
Size of first time step for variable-step solver
Model Configuration Pane: Solver
Description
Specify the size of the first time step, in seconds, for the variable-step solver.
Dependencies
To enable this parameter, set the solver Type to Variable-step
.
Settings
auto
(default) | scalar numberBy default, the Initial step size value is auto
, which indicates that the solver determines the initial step size by examining the derivatives of the states at the start of the simulation.
Be careful when specifying an initial step size other than auto
. If the first step size is too large, the solver might step over important behavior.
When you specify an initial step size, the solver takes a smaller step than specified when error criteria are not met.
Recommended Settings
The table summarizes recommended values for this parameter based on considerations related to code generation.
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: InitialStep |
Type: string | character vector |
Value: scalar number |
Default: 'auto' |
Version History
Introduced before R2006a