MATLAB Functions | Help Desk |
ishandle
Determines if values are valid graphics object handlesarray = 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