This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Clear Command Window




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 key, ↑, to recall statements from the command history.


Use clc in a MATLAB® code file to always display output in the same starting position on the screen.

See Also

| | |

Introduced before R2006a

Was this topic helpful?