| MATLAB Function Reference | Search  Help Desk |
| ishandle | Examples See Also |
Determines if values are valid graphics object handles
array = ishandle(h)
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.
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
findobj