FUNCTION REFERENCE

cell

Create a cell array.

Create a cell array.

Syntax

C = cell(n)

Syntax

C = cell(rows, cols)

Syntax

C = cell([rows cols])

Creates cells that each hold an empty array []. Dimensions are integers from 0 to 65536. Fill cells with C{k} = value and read them with C{k}.

Example

C = cell(1, 3); C{2} = 'x'; size(C)   % [1 3]

Differences from MATLAB: Not checked against MATLAB yet. Two-dimensional output only: cell(2,2,2) and c(i,j,k) = {...} report that N-D cell arrays are not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.