Control Whether a Cell Array Is Variable-Size - MATLAB & Simulink (original) (raw)

The code generator classifies a variable-size cell array as homogeneous. The cell array elements must have the same class. In the generated code, the cell array is represented as an array.

If a cell array is an entry-point function input, to make it variable-size:

If a cell array is not an entry-point function input, to make it variable-size:

See Also

coder.CellType | coder.varsize