Skip to Main Content Skip to Search
Product Documentation

commandwindow - Open Command Window, or select it if already open

Alternatives

As an alternative to commandwindow, select Desktop > Command Window to open it, or Window > Command Window to select it.

Syntax

commandwindow

Description

commandwindow opens the MATLAB Command Window when it is closed, and selects the Command Window when it is open.

Tips

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

get(0,'CommandWindowSize')

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.

See Also

commandhistory | input | inputdlg

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS