Choose a method for defining variable-size data.
Control when dynamic memory allocation is used.
Specify upper bounds for variable-size data.
Variable-size data is data whose size can change at run time.
Use variable-size data in MATLAB® code intended for code generation.
Bounded variable-size data has fixed upper bounds whereas unbounded variable-size data does not.
View variable-size data in code generation reports.
Use the programming interface for statically and dynamically allocated arrays in generated code.
In some cases, the results for variable-size data in generated code are different than the results in MATLAB.
Some restrictions for variable-size data apply to multiple toolbox functions.
Troubleshoot size mismatch and upper bounds detection errors.