Main Content

Output times

Option to specify times for which variable-step simulation produces output values

Model Configuration Pane: Data Import/Export

Description

Specify times at which the variable-step solver generates output values.

  • When you set Output options to Produce additional output, the variable-step solver takes major time steps at the specified times in addition to other major time steps the solver determines during simulation.

  • When you set Output options to Produce specified output only, simulation data logged from simulation contains values only for the specified times. The solver might take additional major time steps as required for accurate simulation results. However, output values are not produced for these time steps.

This parameter is supported only for simulations that use a variable-step solver. In simulations that use a fixed-step solver, the software ignores this parameter.

Dependencies

To enable this parameter, set Output options to Produce additional output or Produce specified output only.

Settings

[] (default) | vector

Specify output times for a variable-step simulation as a vector.

By default, the value for Output times is []. If you set Output options to Produce additional output, the simulation does not produce additional output values. If you specify Output options as Produce specified output only, no data is logged from simulation.

Recommended Settings

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

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Programmatic Use

Parameter: OutputTimes
Type: string | character vector
Value: vector
Default: '[]'

Version History

Introduced before R2006a