h = gch(tag, hwin, h)
Find uicontrol handles with specified tags
tag | any | String or cellstring with tags |
hwin | any | (optional) handle of window to search in, default value: gcf |
h | any | (optional) the default value. Return this value unless it represents "unitialized" (0). In this case return h = gch(tag, hwin) |
h | any | array with handles of uicontrol object with the specified tag |
h=0; %0 means unitialized HWIN = figure; if expression %this line might or might not be reached h=gch('mytag',HWIN); end h=gch('mytag',HWIN,h); %retrieve h if uninitialized