我正在使用这样的等待栏:
h = waitbar(0,'Please wait...');
for i=1:100, % computation here %
waitbar(i/100)
% other operation here
end
close(h)
如果用户关闭等待栏(单击窗口的),我想停止此脚本X
,而无需添加取消按钮。
有什么办法吗?
我正在使用这样的等待栏:
h = waitbar(0,'Please wait...');
for i=1:100, % computation here %
waitbar(i/100)
% other operation here
end
close(h)
如果用户关闭等待栏(单击窗口的),我想停止此脚本X
,而无需添加取消按钮。
有什么办法吗?