Documentation

ishandle

Test for valid graphics or Java object handle

Syntax

ishandle(H)

Description

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:   Use the most specific function for your application instead of ishandle, as described in the following sections.

MATLAB Handle Objects

Use the isa function to determine the class of MATLAB® objects.

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

Graphics Object Handles

Use isgraphics for graphics objects.

Java Object Handles

Use isjava for Java objects.

See Also

| |

Introduced before R2006a

Was this topic helpful?