The format is used to control the display format. However, this only affects the display of the result and does not affect its computing and storage. The following uses 1/3 as an example to describe how to display data:
Format | format short 5-Bit fixed point 0.3333
Format long 15-Bit fixed point indicates 0.333333333333333
Format short E 5-bit floating point expression 3.3333e-001
Format long e 15-bit floating point expression 3.3333333333333e-01
The format short g system selects a 5-Bit fixed point and a 5-bit floating point to better represent 0.33333.
The format long g system selects a 15-Bit fixed point and a 15-bit floating point to better represent 0.333333333333333.
Representation of rational numbers in the format rat approximation is 1/3
Format hex hexadecimal representation 3fd5555555555555
Format Bank uses the metacharacter (US-based) point to represent 0.33
No blank lines exist between the format compact variables.
Empty rows between format loose Variables
Format + big matrix data representation, positive number, negative number and 0 are expressed with +,-, and space +
You can also modify the default format of the system without using the format command. For example, file-> preferences-> command window-> text display.
MATLAB basic learning ----- data display format (settings)