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.

Fixed-step size (fundamental sample time)

Description

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

Category: Solver

Settings

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

    hmax=tstoptstart50

  • For Sine and Signal Generator source blocks, if the stop time is Inf, Simulink calculates the step size using this heuristic:

    Otherwise, the step size is:

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

Dependencies

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

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics