While all computations in MATLAB are performed in double precision, the
format of the displayed output can be controlled by the following
commands.
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 |