FUNCTION REFERENCE

cla

Clear axes.

Clear axes.

Syntax

cla; cla('reset'); cla(ax); cla(ax, 'reset')

Deletes all graphics objects (lines, surfaces, images, text, legend) from the current or specified axes; 'reset' also resets axes properties to defaults.

Example

fig = figure('Visible', 'off'); ax = gca; plot(ax, 1:3, 1:3); cla(ax); numel(ax.Children); close(fig)

Differences from MATLAB: none for standard axes clearing.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.