This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Graphics Object Programming

Comparing, testing for validity, preallocating, and object arrays

Functions

gobjectsInitialize array for graphics objects
isgraphicsTrue for valid graphics object handles
isemptyDetermine whether array is empty
isequalDetermine array equality
isaDetermine if input has specified data type
clfClear current figure window
claClear axes
closeRemove specified figure

Topics

Graphics Object Handles

Use the object handle to set and query the values of the object properties.

Handles in Logical Expressions

Handle objects do not evaluate to logical true or false. You must use the function that tests for the state of interest and returns a logical value.

Graphics Arrays

Graphics arrays can contain the handles of any graphics objects.

Test for Valid Handle

Use isgraphics to determine if a variable is a valid graphics object handle.

Preallocate Arrays of Graphics Objects

Use the gobjects function to preallocate arrays for graphics objects.