MATLAB Function Reference Previous page   Next Page
clc

Clear Command Window

Graphical Interface

As an alternative to the clc function, use Clear Command Window in the MATLAB desktop Edit menu.

Syntax

Description

clc clears all input and output from the Command Window display, giving you a "clean screen."

After using clc, you cannot use the scroll bar to see the history of functions, but you still can use the up arrow to recall statements from the command history.

Examples

Use clc in an M-file to always display output in the same starting position on the screen.

See Also

clear, clf, close, home


Previous page  class clear Next page

© 1994-2005 The MathWorks, Inc.