h = waitbar(x,‘message‘) waitbar(x,‘message‘,‘CreateCancelBtn‘,‘button_callback‘) waitbar(x,‘message‘,property_name,property_value,...) waitbar(x) waitbar(x,h) waitbar(x,h,‘updated message‘) example: h = waitbar(0,‘Please wait...‘); steps = 1000; for step = 1:steps % computations take place here waitbar(step / steps) end close(h)
这是个让等待不会太无聊的小命令。