Documentation

commandwindow

Open Command Window, or select it if already open

Syntax

commandwindow

Description

commandwindowopens the MATLAB®Command Window when it is closed, and selects the Command Window when it is open.commandwindowis not supported when running MATLAB with the-nodesktopoption.

Tips

To determine the number of columns and rows that display in the Command Window, given its current size, use

matlab.desktop.commandwindow.size

The number of columns is based on the width of the Command Window. With the matrix display width preference set to 80 columns, the number of columns is always 80.

Introduced before R2006a

Was this topic helpful?