A.1.4 Cell Arrays in Oct-Files

Octave’s cell type is also available from within oct-files. A cell
array is just an array of octave_values, and thus each element of the
cell array can be treated just like any other octave_value. A simple
example is

Note that cell arrays are used less often in standard oct-files and so
the Cell.h header file must be explicitly included. The rest of the
example extracts the octave_values one by one from the cell array and
returns them as individual return arguments. For example: