mywaitbar

버전 1.2.0.0 (3.13 KB) 작성자: Daniel Pereira
MYWAITBAR: Display multi functional animated wait/progress bar
다운로드 수: 449
업데이트 날짜: 2014/6/10

라이선스 보기

See a preview on "http://i.imgur.com/QdHB3Id.gif"
H = MYWAITBAR(X,'Title','message',CircularScroll);
creates and displays a waitbar of fractional length X, a Title and a
message. It adds the option to make an indeterminate time waitbar
through the option CircularScroll (true or false).
The handle to the waitbar figure is returned in H.

MYWAITBAR(X,H) will set the length of the bar in waitbar H (already
created) to the fractional length X.

MYWAITBAR(X,H,'message') will update the message text in
the waitbar figure, in addition to setting the fractional
length to X.

MYWAITBAR(X,H,'message','title') will update the title in
the waitbar figure, in addition to setting the fractional
length to X and the message text to 'message'

MYWAITBAR('CircScroll',H) makes the waitbar with undefined value,
scrolling contiuously.

MYWAITBAR('CircScroll',H,'message') makes the waitbar with undefined
value, scrolling contiuously with a custom message.

MYWAITBAR('CircScroll',H,'message','title') makes the waitbar with
undefined value, scrolling contiuously with a custom message and title.

This waitbar can be used in a for loop or before an operation whose
duration cannot be predicted

Example:
h = mywaitbar(0,'Please wait...','Computing...',true);
pause(3);
for i=1:300,
% computation here %
pause(0.01);
mywaitbar(i/300,h,[num2str(i) '/300'],sprintf('Running (%.0f%%)',i/300*100));
end
mywaitbar(i/300,h,[num2str(i) '/300'],'Finished');
pause(1);
mywaitbar('circscroll',h,'Last operations...');
pause(2);
close(h);

Properties can be also accessed through the figure handle.
set(wb,'name','New title');
handles = guidata(wb);
set(handles.txt,'string','New message');

인용 양식

Daniel Pereira (2024). mywaitbar (https://www.mathworks.com/matlabcentral/fileexchange/46896-mywaitbar), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
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.2.0.0

Corrected error caused by two consecutive 'circscroll' commands.

1.1.0.0

Corrected error caused by two consecutive 'circscroll' commands.

1.0.0.0