FUNCTION REFERENCE

gobjects

Array of graphics placeholders.

Array of graphics placeholders.

Syntax

h = gobjects(n)

Syntax

h = gobjects(m, n)

Syntax

h = gobjects(sz)

Returns an n-by-n, m-by-n or sz-sized array of empty graphics placeholders (gobjects(0) and gobjects with no input give 0-by-0) to preallocate before storing handles in it. Placeholders are not valid handles, so isgraphics is false for them until a handle is assigned.

Example

h = gobjects(2, 1); h(1) = plot(1:3); isgraphics(h)   % [1; 0]

Differences from MATLAB: Only two-dimensional sizes.

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