function WaitbarRandColor(h) % Sets the waitbar to a random color each time % it's called and also moves it to the lower left % of the screen. % % Last edit by Colin Joye, 5/6/04R set(h,'Position', [94.5 136 270 56.25]); H = get(get(h,'Children'),'Children'); CC = 0.95*[rand rand rand]; set(H(2),'FaceColor',CC); set(H(2),'EdgeColor',CC); pause(0.2); % wait for waitbar graph to move. % --------- End WaitbarRandColor --------------