coder.areUnboundedVariableSizedArraysSupported
Check if current configuration settings allow unbounded variable-size arrays
Since R2024a
Description
returns a logical value that indicates whether unbounded variable-size arrays are supported
during code generation or Simulink® model simulation.tf = coder.areUnboundedVariableSizedArraysSupported
During code generation from MATLAB® code, this function checks the states of code configuration settings Enable dynamic memory allocation (
EnableDynamicMemoryAllocation) and Enable variable-sizing (EnableVariableSizing). If both settings are enabled, the function returnstrue. Otherwise, the function returnsfalse.During Simulink model simulation, this function returns the state of the configuration parameter Dynamic memory allocation in MATLAB functions (
MATLABDynamicMemAlloc).During code generation from Simulink models, this function checks the states of the configuration parameters Dynamic memory allocation in MATLAB functions (
MATLABDynamicMemAlloc) and Support: variable-size signals (SupportVariableSizeSignals). If both of these parameters are enabled, the function returnstrue. Otherwise, it returnsfalse.In MATLAB execution, this function always returns
true.
Examples
Version History
Introduced in R2024a