
Function r = kvpairs2struct(c) converts a row 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). (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-miscellaneous" under GNU GPLv3+