
Function s = valuetocode_array2d(m,cfg) returns a Octave-style string representation of multi-dimensional array m, which is either a numerical or logical matrix, a cell-array or a struct array. The output will be a decomposition of array m into a single 2-dimensional array, in which the pages of all third and higher dimensions are put one below the other. See also m-file valuetocode.m. (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-valuetocode" under GNU GPLv3+