Main Content

Decimation

Description

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

Category: Data Import/Export

Settings

Default: 1

  • With the default value, 1, all data points are saved for logged outputs and states.

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

  • The value of this parameter is not tunable.

  • Simulink® outputs data at the specified number of data points. For example, specifying 2 saves every other data point, while specifying 10 saves one in ten data points.

Tips

  • For some models and simulation conditions, logging can produce large amounts of data. Use this parameter to limit the number of samples saved 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 and states logging.

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

Programmatic Use

Parameter: Decimation
Type: character vector
Value: positive integer greater than zero
Default: '1'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Related Topics