stop = uicontrol('style','toggle','string','stop', ...'background','white');
while ~get(stop,'value')
end
set(stop,'style','pushbutton','string','close','callback','close(gcf)') %when push, stop 变为 close
stop = uicontrol('style','toggle','string','stop', ...'background','white');
while ~get(stop,'value')
end
set(stop,'style','pushbutton','string','close','callback','close(gcf)') %when push, stop 变为 close