MATLAB Display Format

The display format is controlled by the format command/function.


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:

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


CategoryRicottone

MATLAB/DisplayFormat (last edited 2026-01-05 17:09:11 by DominicRicottone)