Test for valid graphics or Java object handle




ishandle(H) returns an array whose elements are 1 where the elements of H are graphics or Java® object handles, and 0 where they are not.

    Note:   You should use the most specific function for your application instead of ishandle, as described in the following sections.

MATLAB Object Handles

Use the isa function to determine the class of MATLAB® objects and use the isvalid handle class method to determine the validity of handle objects. See Testing Handle Validity for information on testing for MATLAB handle objects.

Graphics Object Handles

Use ishghandle for graphics objects.

Java Object Handles

Use isjava for Java objects.

See Also

| |

Was this topic helpful?