Details

MATLAB Coder dynamically allocates memory on the heap for variables of size (in bytes) greater than or equal to this size threshold


Tradeoffs to Consider

Dynamic memory allocation is an expensive operation; the performance cost may be too high for small data sets. If you use small variable-size data sets or data that does not change size at run time, disable dynamic memory allocation.