sprintf
- :
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 MATLABstringormissingobjects 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 processLC_NUMERICuses a comma (nexus#1791).