Configure the display format
f = mps_format() mps_format( f ) mps_format( format, width )
1x2 vector of double
single character string
integer
Set the current display format and width if applicable. Three full matrix printing format exist at the moment with the following character code :
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.
The "i" format prints basic information about a multi-precision matrix but not its content. At the moment the number of rows, columns, precision and memory consumption of the matrix is printed. This mode is useful when dealing with very large matrix of high precision which would take a inordinate amount of time to display. A valid width must be provided but is ignored.
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 current implementation will not print matrix larger than 1000x1000 . 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 scalar printing mode can be configured using mps_sformat,