x = 0
h = waitbar(x,'请或旅稍等','CreateCancelBtn','delete(gcbf)')
hBtn = findall(h, 'type', 'uicontrol')
set(hBtn, 'string'袜团让, '取消', '告局FontSize', 10)
try
while ishandle(h)
waitbar(x, h, ['当前进度:' num2str(x*100) '%'])
x = x + 0.1
if x >1
break
end
pause(1)
end
delete(h)
clear h
end
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)