Skip to Main Content Skip to Search
Product Documentation

ishghandle - True for Handle Graphics object handles

Syntax

ishghandle(h)

Description

ishghandle(h) returns an array that contains 1's where the elements of h are handles to existing graphic objects and 0's where they are not. Differs from ishandle in that Simulink objects handles return false.

Examples

Create a plot and find the valid handles:

x = [1:10];
y = [1:10];
p=plot(x,y);
ishghandle([x y p])
% This returns a 1-by-21 array of values with ones at the first, 
% eleventh, and last values, if the figure handle is 1. 

See Also

findobj | gca | gcf | isa | ishandle | set

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS