ConsoleProgressBar

バージョン 1.1.0.0 (5.54 KB) 作成者: Evgeny Pr
Console progress bar for long-running operations
ダウンロード: 1.4K
更新 2011/2/5

ライセンスの表示

This class creates a console progress bar (status bar) for long-running operations. Visually, it's very similar to the unix command line utilites "pv" and "wget". You can customize the look to your taste.

In addition, it's funny, but it may be useful. Just for fun! :)

Usage example:
% Create Instance
cpb = ConsoleProgressBar();

% Set progress bar parameters
cpb.setLeftMargin(1); % progress bar left margin
cpb.setTopMargin(1); % rows margin

cpb.setLength(40); % progress bar length: [.....]
cpb.setMinimum(0); % minimum value of progress range [min max]
cpb.setMaximum(100); % maximum value of progress range [min max]

cpb.start();

for k = 0:100
userText = sprintf('Progress: [%d/%d]', k, 100);

cpb.setValue(k); % update progress value
cpb.setText(userText) % update user text

pause(0.025)
end

cpb.stop();

引用

Evgeny Pr (2024). ConsoleProgressBar (https://www.mathworks.com/matlabcentral/fileexchange/30297-consoleprogressbar), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2009a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersEnvironment and Settings についてさらに検索
謝辞

ヒントを与えたファイル: ecopath_matlab: A Matlab implementation of Ecopath

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

- improved performance
- fixed minor bugs

1.0.0.0