fabien van mook

all packages "fvm-*"

package "fvm-valuetocode"

function file "structscalar.m"

Function r = structscalar(c)

converts a cellarray with a series of key-value pairs to
a structure, without attempting to make a structure array.
Thus, each key in the cellarray becomes a field holding
the value, whatever the value is. Each key must be a
character vector (or string).

The input cellarray may be a row cellarray with an even
number of elements, or a two-dimensional cellarray.


(c) 2026 fabien van mook

2026.08.20 release of this file within package "fvm-valuetocode" under GNU GPLv3+