waitbar Attempt to execute SCRIPT waitbar as a function.
来源:百度知道 编辑:UC知道 时间:2024/05/11 12:18:10
h1=waitbar(0,'正在计算,请勿关机');
for t1=1:step
h1=waitbar(t1/step);
......
调试报错,可能是什么问题?
非常感谢。
for t1=1:step
h1=waitbar(t1/step);
......
调试报错,可能是什么问题?
非常感谢。
首先,step未定义;其次,后面未写全……
程序修改如下:
h1=waitbar(0,'正在计算,请勿关机');
step=1000;
for t1=1:step
h1=waitbar(t1/step);
end
close(h1); %运行完自动关闭waitbar