fabien van mook

all packages "fvm-*"

package "fvm-optionmanip"

function file "valuetostr.m"

Function s = valuetostr(v)
         s = valuetostr(v,frmt)
         s = valuetostr(v,frmt,delim)
         s = valuetostr(v,frmt,delim,other_type)

converts v which contains a string, a numeric/logical
matrix or a cell-array, into a single string.

If v is a cell-array, each of its elements may contain a
string, a numeric/logical matrix or a (nested) cell-array.

The second input argument frmt is optional, and contains
a string with the sprintf template for the conversion of a
single numerical/logical value into a string
representation. The default value of frmt is "%g".

The third input arugment delim is optional, and contains
a string, which is inserted between each non-empty element
in v that has been (eventually) given as a string or a
numerical/logical value. The default value of delim is a
space.

The fourth input arugment other_type is optional, and
contains a string, which will represent each element in v
that has not been (eventually) given as a string or a
numerical/logical value. The default value of other_type
is "OTHER".

The function internally calls the following non-standard
m-files:
-- valuetostr.m;
-- strjoinnonempty.m.


(c) 2026 fabien van mook

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