Function cfg = valuetocode_cfg()
cfg = valuetocode_cfg(p)
cfg = valuetocode_cfg(cfg)
cfg = valuetocode_cfg(p,cfg)
returns a struct cfg with configurations. Input arguments
may be a string and/or a struct.
Input argument p, which is a string, may contain
'native', 'octave', 'matlab' or 'json-like' to invoke
precooked configurations. At default, option 'native' is
assumed.
Input argument p may additionally contain 'compact' for
output without triple dots, spaces, tabs and newlines. At
default, the output is not reduced in such manner.
Input argument cfg, which is a struct, will be returned
after the completion with missing fields in comparison
with one of the precooked configurations.
When two input arguments, p and cfg, are given, one can
combine the input of an incomplete configuration struct
cfg with a certain precooked configuration. In that case,
or when a complete configuration struct cfg is given, one
can invoke a compact output.
See into this m-file which fields and values are defined
for the struct cfg. The comments of this m-file contain
also some information on official json.
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+