Skip to content

cell

builtin · libnexusinterp/nexus-value/ov-cell-proprietary.cc

: c = cell (n)
: c = cell (m, n)
: c = cell (m, n, k, …)
: c = cell ([m n …])

Create a cell array whose elements are all empty matrices.

With a single scalar n the result is n-by-n. A vector argument, or several scalar arguments, list the size along each dimension. Negative sizes are treated as zero, and with no arguments the result is 0-by-0. A cell array given as the only argument is returned unchanged.

size (cell (2, 3, 4))
  ⇒ 2 3 4