Enable variable-sizing
Variable-size array support
Description
App Configuration Pane: Memory
Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig
The Enable variable-sizing parameter specifies whether the code generator supports variable-size arrays.
If you disable variable-size support, code generation fails if the MATLAB® code uses variable-size data structures. In addition, when you disable variable-size support, all data is allocated on the stack during code generation. For large data structures, this might result in stack overflow.
Dependencies
Selecting this parameter enables the parameter Enable dynamic memory allocation.
Settings
- On
This value is the default value.
The code generator produces code for variable-size arrays.
- Off
Code generation fails if the MATLAB code uses variable-size arrays.
Programmatic Use
Property:
EnableVariableSizing |
Values: true |
false |
Default: true |
Version History
Introduced in R2011a