Function displayf(doprint, templ, ...)
s = displayf(doprint, templ, ...)
prints the values of the optional third and following
arguments under the control of the template string templ.
The output is either printed on the screen, or returned as
a string.
The first input argument doprint is a boolean. If it is
false, nothing is printed on the screen, or an empty
string is returned.
The template string templ is formatted as the one for
function sprintf(), except that each third and following
argument is represented by a string format, e.g. '%s' (and
one can not choose numerical formats '%f', '%e' and such).
This is because each of the third and following arguments
is internally converted into a string by function disp()
to guarantee that any Octave value is converted into a
string somehow.
(c) 2026 fabien van mook
2026.08.20 release of this file within package "fvm-miscellaneous" under GNU GPLv3+