Skip to content

sprintf

builtin · libnexusinterp/corefcn/file-io-proprietary.cc

: str = sprintf (template, …)

Format data according to template and return the text as a char row.

The conversions are those of fprintf. Arguments that are MATLAB string or missing objects are formatted as their text.

Numeric conversions always use a period decimal separator, matching MATLAB’s POSIX numeric locale (feature('locale').numeric), even when the process LC_NUMERIC uses a comma (nexus#1791).