Test for valid graphics orJavaobject handle
ishandle(H)
ishandle(H)
returns an array whose elements are1
where the elements ofH
are graphics or Java®object handles, and0
where they are not.
Note
Use the most specific function for your application instead ofishandle
, as described in the following sections.
Use theisa
函数来阻止mine the class of MATLAB®objects.
Use thehandle
classisvalid
method to determine the validity of handle objects. SeeTest Handle Validityfor information on testing for MATLAB handle objects.
Useisgraphics
for graphics objects.
Useisjava
for Java objects.