| MATLAB Function Reference | ![]() |
Determines if values are valid graphics object handles
Syntax
array = ishandle(h)
Description
array = ishandle(h)
returns an array that contains 1's where the elements of h are valid graphics handles and 0's where they are not.
Examples
Determine whether the handles previously returned by fill remain handles of existing graphical objects:
X = rand(4); Y = rand(4);
h = fill(X,Y,'blue')
.
.
.
delete(h(3))
.
.
.
ishandle(h)
ans =
1
1
0
1
See Also
| isappdata | ishold | ![]() |