AWAITBAR: alternative to waitbar

버전 1.0.0.0 (10.4 KB) 작성자: Durga Lal Shrestha
Waitbar with an abort button, estimated time, elapsed time display
다운로드 수: 2.9K
업데이트 날짜: 2016/4/4

라이선스 보기

AWAITBAR displays waitbar with abort button
Clicking on the ABORT or the CLOSE button of the waitbar figure will abort the loop and close the waitbar.
USAGE:
H = awaitbar(x,message) creates and displays a waitbar of fractional length X with the message text in the waitbar figure. The handle to the waitbar figure is returned in H. x should be between 0 and 1.

H = awaitbar(x,message,figTitle) displays title in the figure title

H = awaitbar(x,message,figTitle,figPosition) positions the figure according to the value specified in figPosition

abort = awaitbar(x) will update in the most recently created waitbar window. The output "abort" has value true when user click the abort button of the awaitbar.

abort = awaitbar(x,H,...) will update in waitbar H

FEATURES
1. Abort button to abort the loop and close the waitbar figure.
1. It stays on top of other figures. % Thanks to Peder Axensten(11398).
2. Only one waitbar window, so no old ones left around. Thanks to Peder Axensten(11398).
5. Elapsed time and Estimated Remaining time are shown in the figure.
6. Update of the progress is also shown in the figure title.
7. User defined figure position.

EXAMPLES:
h = awaitbar(0,'Running Monte-Carlo, please wait...');
for i=1:n
pause(0.05); % Do stuff
abort = awaitbar(i/n,h,['run :' num2str(i)]); % with update message
if abort; break; end
end

인용 양식

Durga Lal Shrestha (2024). AWAITBAR: alternative to waitbar (https://www.mathworks.com/matlabcentral/fileexchange/15231-awaitbar-alternative-to-waitbar), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Abort button now works also in function
other minor improvements
BSD License