The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Method on @infsup: fprintf (fid, template, X)
Method on @infsup: fprintf (template, X)

Write interval X under the control of a template string template to the file descriptor fid and return the number of characters printed.

If fid is omitted, the output is written to stdout making the function exactly equivalent to printf.

See help intervaltotext for the syntax of the template string.

fprintf ("The result lies within the box %[4g].\n", infsup (2, 3))
  ⇒ The result lies within the box [   2,    3].

See also: intervaltotext, @infsup/printf, @infsup/sprintf.

Package: interval