Main Content

Fixed-step size (fundamental sample time)


Specify the step size used by the selected fixed-step solver.

Category: Solver


Default: auto

  • Entering auto (the default) in this field causes Simulink® to choose the step size.

  • If the model specifies one or more periodic sample times, Simulink chooses a step size equal to the greatest common divisor of the specified sample times. This step size, known as the fundamental sample time of the model, ensures that the solver will take a step at every sample time defined by the model.

  • If the model does not define any periodic sample times, Simulink chooses a step size that divides the total simulation time into 50 equal steps.

  • If the model specifies no periodic rates and the stop time is Inf, Simulink uses 0.2 as the step size. Otherwise, it sets the fixed-step size to


  • For Sine and Signal Generator source blocks, if the stop time is Inf, Simulink calculates the step size using this heuristic:hmax=min((0.2),(13)(1Freqmax))Otherwise, the step size is:


    where Freqmax is the maximum frequency (Hz) of these blocks in the model.


This parameter is enabled only if the Periodic sample time constraint is set to Unconstrained.

Programmatic Use

Parameter: FixedStep
Type: character vector
Value: any valid value
Default: 'auto'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics