1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| function GUI_INTERFACE (obj, event)
handles(1)= figure('MenuBar','none',...
'position',[260,180,800,500],...
'visible', 'on',...
'tag', 'interface');
uicontrol('style','pushbutton',...
'units','normalized',...
'position',[0.85 0.08 0.10 0.05],...
'Callback',@Start,...
'string','START');
function Start(obj,event)
close (handle(1));
handles(2)= figure('MenuBar','none',...
'position',[240,115,800,500],...
'visible', 'on');
uicontrol('style','pushbutton',...
'units','normalized',...
'position',[0.45 0.08 0.10 0.05],...
'callback',@Reset,...
'string','RESET');
m1= uicontrol('style','edit',...
'units','centimeter',...
'position',[5 3 2 0.7],...
'string','');
m2= uicontrol('style','edit',...
'units','centimeter',...
'position',[5 2 2 0.7],...
'string','');
function Reset(obj,event)
set(Handle(2)Edit, 'String','') |