/usr/share/freemat/help/text/printf.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | PRINTF PRINTF Formated Output Function (C-Style)
Usage
Prints values to the output. The general syntax for its use is
printf(format,a1,a2,...)
Here format is the format string, which is a string that
controls the format of the output. The values of the variables
a_i are substituted into the output as required. It is
an error if there are not enough variables to satisfy the format
string. Note that this printf command is not vectorized! Each
variable must be a scalar.
It is important to point out that the printf function does not
add a newline (or carriage return) to the output by default. That
can lead to some confusing behavior if you do not know what to expect.
For example, the command printf('Hello') does not appear to
produce any output. In fact, it does produce the text, but it then
gets overwritten by the prompt. To see the text, you need
printf('Hello\n'). This seems odd, but allows you to assemble a
line using multiple printf commands, including the '\n' when
you are done with the line. You can also use the '\r' character
as an explicit carriage return (with no line feed). This allows you
to write to the same line many times (to show a progress string, for
example).
|