home

Moves the cursor to the top of the Command Window.

Category: Language Fundamentals > Entering Commands

Syntax

home

Sends the cursor to the upper left of the command window.

Description

home scrolls the command window so the prompt is at the top, while keeping earlier text in the scroll-back. This differs from clc, which erases the text.

Example

disp('first')
home
disp('second')
Output
first
second

Notes

MatLivre accepts the call and does nothing.

See also

clc commandwindow more