Octave format command
Overview
In this tutorial, we will learn about the Octave format command. The format is a built-in Octave function.
format command
The format command is used to specify or reset the format of the output produced by the Octave. For example, the output produced by the disp command.
The format command only affects the display of the number and not how the number is stored or computed.
Syntax
>> format options
Examples
>> format short
By default, Octave displays a fixed point format with
4 digits to the right of the decimal point in a human-readable format.
>> format long
Displays a fixed point format with 15 digits to the right of the decimal point.
>> format bank
Displays a fixed format with two digits to the right of the decimal point.
—
Octave Tutorials
Octave Tutorial on this website can be found at:
https://www.testingdocs.com/octave-tutorial/
More information on Octave can be found on the official website:
https://www.gnu.org/software/octave/index