Configure the scalar display format
f = mps_sformat() mps_sformat( f ) mps_sformat( format, width )
1x2 vector of double
single character string
integer
Set the current display format and width when printing scalar multi-precision value (1x1 matrices). By default the same format as matrix printing is used until one is explicitly configured. The following scalar printing mode are supported.
Variable format (default). In this format the shorter of the classic full length format or the scientific notation is used. The width is used to control how many digits the classic format uses before switching.
Always use the scientific notation.
Disable the special treatment of scalar printing and use the same format as full matrix printing.
Return a 1x2 vector with the current format and width encoded as integers.
Set the format using a 1x2 vector as returned by the previous case.
Set the format using its character code with the given width.
The maximum width is 1000 digits and the minimum 5.
The printing of high precision data is very computationally intensive even for small width. The "i" format is recommended for matrix to large to be printed quickly. MPScilab optionally recognize the printing of a scalar (1x1 MPS matrix) as a special case. As such it is possible to use a different wider printing format for scalars and a smaller more compact format for matrices. The matrix printing mode can be configured using mps_format,