While all computations in MATLAB are performed in double precision, the
format of the displayed output can be controlled by the following
format short fixed point with 4 decimal places(the default) format long fixed point with 14 decimal places format short e scientific notation with 4 decimal places format long e scientific notation with 15 decimal placesOnce invoked, the chosen format remains in effect until changed.
The command format compact will suppress most blank lines allowing more information to be placed on the screen or page. It is independent of the other format commands.