The code generator classifies a cell array as homogeneous or heterogeneous. Homogeneous cell arrays are represented as arrays in the generated code. Heterogeneous cell arrays are represented as structures in the generated code. To classify a cell array, the code generator considers the properties (class, size, complexity) of the elements and other factors such as how you use the cell array in your program. See Code Generation for Cell Arrays.
|Declare variable-size data|
|Represent set of MATLAB cell arrays|
- Code Generation for Cell Arrays
The classification as homogeneous or heterogeneous determines how the cell array is represented in the generated code and how you can use the cell array.
- Control Whether a Cell Array Is Variable-Size
Create variable-size cell arrays or force cell arrays to be variable-size.
- Cell Array Limitations for Code Generation
Adhere to code generation restrictions for cell arrays.
Résolution des problèmes
Troubleshoot cell array assignment for a variable-size cell array created with