| MATLAB Function Reference | Search  Help Desk |
| format | See Also |
Control the output display format
Syntax
format format type
Description
MATLAB performs all computations in double precision.Theformat command described below changes the display format.Algorithms
The commandformat + displays +, -, and blank characters for positive, negative, and zero elements. format hex displays the hexadecimal representation of a binary double-precision number. format rat uses a continued fraction algorithm to approximate floating-point values by ratios of small integers. See rat.m for the complete code.
See Also
fprintf, num2str, rat, sprintf, spy