Enable dynamic memory allocation for fixed-sized arrays
Dynamic memory allocation for fixed-size arrays
Since R2022a
Description
App Configuration Pane: Memory
Configuration Objects: coder.MexCodeConfig
| coder.CodeConfig
| coder.EmbeddedCodeConfig
Control use of dynamic memory allocation for fixed-size arrays. By default, dynamic memory allocation is disabled for fixed-size arrays.
Enabling Dynamic memory allocation for fixed-size arrays allocates memory on the heap for fixed-size arrays whose size (in bytes) is greater than or equal to Dynamic memory allocation threshold.
Dependencies
To enable this parameter, select the Enable dynamic memory allocation check box.
Settings
- Off
This value is the default value.
The code generator statically allocates memory for fixed-size arrays on the stack.
- On
The code generator allocates memory dynamically on the heap for fixed-size arrays whose size (in bytes) is greater than or equal to the Dynamic memory allocation threshold.
Programmatic Use
Property:
DynamicMemoryAllocationForFixedSizeArrays
|
Values: false |
true |
Default: false |
Version History
Introduced in R2022a