commandwindow

Moves the focus to the Command Window.

Category: Language Fundamentals > Entering Commands

Syntax

commandwindow

Selects the command window so typing goes there.

Description

In MATLAB this opens the command window if it is hidden and gives it keyboard focus. It is used at the end of programs that created figures or dialogs, so the user can type the next command without clicking.

Example

disp('done')
commandwindow
Output
done

Notes

MatLivre accepts the call and does nothing.

See also

clc home figure