Navigation

Operators and Keywords

Function List:

C++ API

: 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.

Implementation Note: For compatibility with MATLAB, escape sequences in the template string (e.g., "\n" => newline) are expanded even when the template string is defined with single quotes.

See also: fprintf, sprintf, scanf.

Package: octave