ProgressBar

버전 1.0.1 (2.09 KB) 작성자: B.R.P
A lightweight, flexible progress bar for MATLAB that works in console, GUI (waitbar), and parallel (parfor) loops.
다운로드 수: 4
업데이트 날짜: 2025/9/28

라이선스 보기

Universal Progress Bar
A compact and versatile MATLAB progress bar that adapts to console output, GUI waitbars, and parallel parfor loops. Designed to be both lightweight and customizable.
🌟 Highlights
  • Console modes
  • Horizontal: classic overwrite style
  • Vertical: log style, each update on a new line
  • GUI support
  • Waitbar window with percentage, elapsed time, ETA, and memory usage
  • Parallel compatibility
  • Works seamlessly with parfor via parallel.pool.DataQueue
  • Built-in tracking
  • Elapsed time, estimated completion time, and MATLAB memory usage
🚀 Quick Start
1. Console (default horizontal)
N = 100;
p = ProgressBar(N);
for i = 1:N
pause(
0.05); % your work
p.update(
i);
end
p.finish;
2. Console vertical log
p = ProgressBar(20,'style','vertical');
for i = 1:20
pause(
0.1);
p.update(
i);
end
p.finish;
3. GUI waitbar
p = ProgressBar(100,'gui',true);
for i = 1:100
pause(
0.02);
p.update(
i);
end
p.finish;
4. Parallel parfor
N = 200;
p = ProgressBar(N,
'style','vertical'); % also 'horizontal' or 'gui'
dq = p.attachParfor();
parfor i = 1:N
pause(
0.01); % your work
send(dq,
1); % notify one step completed
end
p.finish;
🔧 Options
  • style: 'horizontal' (default) or 'vertical'
  • gui: true or false (default)
  • Customization inside the class: BarLength, Symbol, EmptySymbol

인용 양식

B.R.P (2026). ProgressBar (https://kr.mathworks.com/matlabcentral/fileexchange/182150-progressbar), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2025b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가
버전 게시됨 릴리스 정보
1.0.1

Improved description.

1.0.0