Main Content

Decimation

Option to apply decimation factor for logged output, state, and time data

Model Configuration Pane: Data Import/Export

Description

Specify the decimation factor, n, such that every nth data point is logged for outputs, states, and time.

Settings

1 (default) | positive integer greater than zero
  • With the default value 1, all data points are logged for outputs, states, and time.

  • The specified value must be a positive integer greater than zero.

  • The value of this parameter is not tunable during simulation.

Tips

  • For some models and simulation conditions, logging can produce large amounts of data. Use this parameter to reduce the number of samples logged when a reduced effective sample rate is sufficient.

  • You can also use the Limit data points to last parameter to reduce the number of sample values saved for output, state, and time logging.

  • For more information about configuring which data points are logged for different logging techniques, see Specify Signal Values to Log.

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: Decimation
Type: string | character vector
Value: positive integer greater than zero
Default: '1'

Version History

Introduced before R2006a