Main Content

Cell Arrays

Definition and use of cell arrays in code acceleration

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.


coder.varsizeDeclare variable-size data


coder.CellTypeRepresent set of MATLAB cell arrays


Résolution des problèmes

Unable to Determine That Every Element of Cell Array Is Assigned

Troubleshoot cell array assignment for a variable-size cell array created with cell.