Main Content

Dynamic memory allocation threshold

Size threshold for dynamic memory allocation of variable-size arrays

Description

App Configuration Pane: Memory

Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig

Size threshold for dynamic memory allocation of fixed-size and variable-size arrays, specified as a positive integer. The code generator uses dynamic memory allocation for fixed-size and variable-size arrays whose size (in bytes) is greater than or equal to the threshold.

Dependencies

To enable this parameter, select the Enable dynamic memory allocation check box.

Settings

65536 | positive integer

Threshold for dynamic memory allocation in bytes, specified as a positive integer. The default setting is 65536.

Programmatic Use

Property: DynamicMemoryAllocationThreshold
Values: 65536 | positive integer
Default: 65536

Version History

Introduced in R2012a