matlab中的ishghandle

ishghandle True for Handle Graphics object handles.
ishghandle(H) returns an array that contains 1's where the elements
of H are valid graphic object handles and 0's where they are not.
Differs from ISHANDLE in that Simulink objects handles return false
% 判断H是否是图像句柄,如:
I = imread('000.jpg'); H = imshow(I);
ishghandle(H)
ans =
1
A = 666.6471;
>> ishghandle(A)
ans =
0
posted @ 2016-10-29 21:32  狡啮之仰  阅读(1210)  评论(0编辑  收藏  举报