MATLAB Display Format
The display format is controlled by the format command/function.
Contents
Usage
The number of displayed decimal places is controlled by the display format.
To change the style to s, try either format s or format("s"). Note that quotes are required by the second form.
Built-in styles include:
short (4 decimal places)
long (15 decimal places)
hex
rat (ratios)
To access and store the current style, use fmt = format. To do that and set the style to s, try fmt = format("s").
Maximum Values
To access the maximum values of data types, try:
>> format hex
>> intmax('uint64')
ans = uint64
ffffffffffffffff
>>> realmax
ans = uint64
7fefffffffffffff