function [] = examplegui2()
figure('pos',[300 200 200 180],'men','n');
edit1 = uicontrol('sty','ed','str','Blank',...
'pos',[10 60 180 20]);
edit2 = uicontrol('sty','ed','str','Blank',...
'pos',[10 100 180 20]);
edit3 = uicontrol('sty','ed','str','Blank',...
'pos',[10 140 180 20]);
push = uicontrol('sty','pu','str','Push to fill edits',...
'call',{@pushcb,edit1,edit2,edit3},'pos',[10 20 180 20]);
function [] = pushcb(hand,evnt,edit1,edit2,edit3)
% Callback for popupmenu.
set(edit1,'str',floor(rand*1000));
set(edit2,'str',floor(rand*1000));
set(edit3,'str',floor(rand*1000));
Thank you very much!