Convert interval X to an interval literal string s, which contains X.
Output s is a simple string for scalar intervals, and a cell array of strings for interval arrays.
The interval boundaries of X are stored in binary floating point format and are converted to decimal or hexadecimal format with possible precision loss. If output is not exact, the boundaries are rounded accordingly (e. g. the upper boundary is rounded towards infinite for output representation).
The desired layout of interval literal s can be customized with conversion specifier cs as follows.
overall_width : [ flags width . precision conversion ]The output shall be an interval literal in inf-sup form (default). Its format may be customized by the following options:
CUse upper case for Entire, Empty, and NaI
cUse lower case for Entire, Empty, and NaI
<Output Entire as [-Inf, +Inf] instead of [Entire]
-Left justify within the given field width
+Always use a plus sign for positive numbers. By default the plus sign is only used for intervals with an inner zero.
 Never use a plus sign for positive numbers
0Left-pads the numbers with zeros instead of spaces within the field width
f / F (for decimal floating-point), e / E (scientific notation), g / G (use either decimal floating-point or scientific notation, depending on what is more appropriate for the magnitude of the number), a / A (hexadecimal floating-point).
overall_width : flags width . precision ? radius_width conversionThe output shall be an interval literal in uncertain form. Its format may be customized by the following options:
dUse one-sided form with upper boundary and uncertain ulp-count in downward direction. By default the symmetric form with midpoint and radius is used. For unbound intervals, this flag is ignored and the direction is chosen automatically.
uUse one-sided form with lower boundary and uncertain ulp-count in upward direction. For unbound intervals, this flag is ignored.
CUse upper case for Entire, Empty, and NaI
cUse lower case for Entire, Empty, and NaI
+Always use a plus sign for positive numbers
0Left-pads the interval midpoint with zeros instead of spaces within the field width
f / F (for decimal floating-point), e / E (scientific notation), g / G (use either decimal floating-point or scientific notation, depending on what is more appropriate for the magnitude of the number).
See also: @infsup/printf, @infsup/fprintf, @infsup/sprintf.
Package: interval