Draw a waitbar
winH=waitbar(x) winH=waitbar(x,mes) winH=waitbar(mes) waitbar(x,winH) waitbar(mes,winH) waitbar(x,mes,winH)
real, fraction to display.
string, message to display.
Handle of the waitbar.
waitbar(x) create a new waitbar displaying a fraction x, return handle of the waitbar.
waitbar(x,mes) create a new waitbar displaying a fraction x and message mes, return handle of the waitbar.
waitbar(mes) create a new waitbar displaying a fraction 0 and message mes, return handle of the waitbar.
waitbar(x,mes) create a new waitbar displaying a fraction 0 and message mes, return handle of the waitbar.
waitbar(x,winH), waitbar(mes,winH) and waitbar(x,mes,winH) update waitbar with handle winH.
winH=waitbar('This is an example'); realtimeinit(0.3); for j=0:0.1:1, realtime(3*j); waitbar(j,winH); end close(winH); | ![]() | ![]() |