Main Content

Decimation

Description

Specify the decimation factor, N, such that Simulink® outputs data every N points.

Category: Data Import/Export

Settings

Default: 1

  • With the default value, 1, all data points are saved.

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

  • 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

  • Saving data to the MATLAB® workspace can consume memory. Use Decimation to limit the number of saved samples to consume less memory.

  • You can also use the Limit data points to last parameter to help resolve memory consumption issues.

Command-Line Information

Parameter: Decimation
Type: character vector
Value: any valid value
Default: '1'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Related Topics