Development Environment    

Clearing the Command Window

Select Clear Command Window from the Edit menu to clear it. This does not clear the workspace, but only clears the view. Afterwards, you still can use the up arrow key to recall previous functions.

Function Alternative.   Use clc to clear the Command Window. Similar to clc, the home function moves the prompt to the top of the Command Window.

Suppressing Output

If you end a line with a semicolon ( ; ), MATLAB runs the statement but does not display any output when you press the Enter or Return key. This is particularly useful when you generate large matrices. For example, typing

and then pressing Enter or Return creates A but does not display the resulting matrix.


  Arrow and Control Keys in the Command Window Paging of Output in the Command Window