matlab.commandwindow Settings
R2026bCommand 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 Programmatically.