# Function: gch

## CALL:

h = gch(tag, hwin, h)

## DESCRIPTION:

Find uicontrol handles with specified tags

## INPUT:

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)

## OUTPUT:

h | any |
    array with handles of uicontrol object with the specified tag

## EXAMPLE:

         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