Function c_out = cellflatten(c)
flattens the given possibly (recursively) nested
cell-array. E.g. for an input of {{"abc"}} we will get the
output "abc", and given {1,{{2,{{3}}}}} the function will
return {1,2,3}.
The input argument c may be a cell-array containing
possibly (recursively) nested cell-arrays. The function
always returns a cell-array.
Function cellflatten() does not call itself recursively.
(c) 2026 fabien van mook
2026.08.20 release of this file within package "fvm-celltravel" under GNU GPLv3+