Name

xbasc — clears a graphics window.

Calling Sequence

xbasc([window-id])

Parameters

window-id

integer scalar or vector

Description

Without any argument, this function clears the current graphic figure by deleting all its children. Otherwise it clears the graphic figures whose ids are included in the vector window-id. For example xbasc(1:3) clears windows 1, 2 and 3. If one of the windows does not exist, then it is automatically created.

xbasc function delete every children of specified windows including menus and uicontrols added by user. To prevent menus and uicontrols from being deleted, the delete(gca()) command might be used instead.

Function xbasc is obsolete. To erase a figure, please use instead the clf or delete functions.

See Also

clf , xclear