function change_gain(); h=uicontrol('Style','edit','String','1','CallBack','setgain(gco)'); % The CallBack passes the handle of the current object (gco) to % the setgain function. set(gcf,'MenuBar', 'none','units', 'normalized','position',[0.2894 0.3292 0.2200 0.2200])