Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

Using the Command Window

About the Command Window

The Command Window is one of the main tools you use to enter data, run MATLAB code, and display results. If you have an active Internet connection, you can watch the Working in the Development Environment video demo for an overview of the major functionality.

Opening the Command Window

When the Command Window is not open, access it by selecting Command Window from the Desktop menu. Alternatively, open the Command Window with the commandwindow function.

If you prefer a simple command-line interface without the other MATLAB desktop tools visible, select one of the following:

For more information, see Opening and Arranging Desktop Tools.

Image of empty MATLAB Command Window

To restore the desktop to the default arrangement, select Desktop > Desktop Layout > Default.

Using the Command Window Prompt

Enter statements at the Command Window prompt. The prompt indicates that MATLAB is ready to accept input from you. This prompt is also known as the command line.

The prompt can be any one of the following:

Changing How the Command Window Looks

There are various ways you can change how the Command Window looks. The following table provides links to sections that describe how.

ActionSee This Section
Move or resize the Command Window.Opening and Arranging Desktop Tools
Change fonts in the Command Window. Setting Fonts Preferences for Desktop Tools
Show and hide buttons, wrap lines, and similar details.Preferences for the Command Window

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS