Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Console > clc

clc

Clear Command Window

Syntax

clc
clc(nblines)

Arguments

nblines

a double value

Description

clc() clears all input and output from the Console.

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

clc(nblines) clears nblines above cursor current line and move cursor up to this line.

Note that clc([nblines]) cannot be used under Unix/Linux platforms when Scilab used in cli or adv-cli (no window) modes.

Examples

rand(10,10)
clc();
rand(10,10)
clc(5); // Delete the 5 previous lines

See also

  • tohome — Clears the command window by masking its former content above the top
  • clf — Clears and resets a figure or a frame uicontrol
  • host cls (consolebox) — shows or hides the MS Windows terminal running the Scilab session
Report an issue
<< ans Console completion >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:49:22 CET 2020