matlab 不用GUI绘图加入pushbutton

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

你可能感兴趣的:(String,matlab,callback)