Command Window settings including text display settings
You can change the appearance of the Command Window and its output using the
matlab.commandwindow
settings. Access
matlab.commandwindow
settings using the root
SettingsGroup
object returned by the settings
function. For example, set the temporary value for line spacing in the Command Window to
'compact'
.
s = settings;
s.matlab.commandwindow.DisplayLineSpacing.TemporaryValue = 'compact'
For more information about settings, see Access and Modify Settings.
NumericFormat
— Output display formatshort
(default) | long
| shortE
| longE
| ...Output display format, specified as one of these options.
| Result | Example |
---|---|---|
| Short, fixed-decimal format with 4 digits after the decimal point. | 3.1416 |
| Long, fixed-decimal format with 15 digits after the
decimal point for | 3.141592653589793 |
| Short scientific notation with 4 digits after the decimal point. | 3.1416e+00 |
| Long scientific notation with 15 digits after the
decimal point for | 3.141592653589793e+00 |
| Short, fixed-decimal format or scientific notation, whichever is more compact, with a total of 5 digits. | 3.1416 |
| Long, fixed-decimal format or scientific notation,
whichever is more compact, with a total of 15 digits for
| 3.14159265358979 |
| Short engineering notation (exponent is a multiple of 3) with 4 digits after the decimal point. | 3.1416e+000 |
| Long engineering notation (exponent is a multiple of 3) with 15 significant digits. | 3.14159265358979e+000 |
| Positive/Negative format with | + |
| Currency format with 2 digits after the decimal point. | 3.14 |
| Hexadecimal representation of a binary double-precision number. | 400921fb54442d18 |
| Ratio of small integers. | 355/113 |
Example: s.matlab.commandwindow.NumericFormat.TemporaryValue =
'shortE'
DisplayLineSpacing
— Line spacing in output display'loose'
(default) | 'compact'
Line spacing in output display, specified as 'loose'
or
'compact'
. Specify compact
to
suppress blank lines in Command Window output, and loose
to display blank lines.
Example: s.matlab.commandwindow.DisplayLineSpacing.TemporaryValue
= 'compact'
ShowCompletionsAutomatically
— Show suggestions and completions automatically in MATLAB® Online™1
(default) | 0
Show suggestions and completions automatically in MATLAB
Online, specified as 1
or
0
.
Set to 1
to show suggestions and completions
automatically in the Command Window in MATLAB
Online. Set to 0
to show suggestions and
completions only after you press the Tab key.
For more information about code suggestions and completions, see Check Syntax as You Type.
Example: s.matlab.commandwindow.ShowCompletionsAutomatically.TemporaryValue
= 0