Function Reference
— Built-in Function: printf (template, ...)

Print optional arguments under the control of the template string template to the stream stdout and return the number of characters printed.

See the Formatted Output section of the GNU Octave manual for a complete description of the syntax of the template string.

See also: fprintf sprintf scanf