progress

版本 1.0.1 (2.5 KB) 作者: Yarmo Mackenbach
Simple command line progress bar
15.0 次下载
更新时间 2019/9/27

## Usage

`progress('_start')` initializes a new progress bar. Must always be called first.

`progress(i)` updates the progress bar. `i` is a percentage.

`progress(i, m)` is similar, but a percentage is automagically calculated, where `i` is the current step and `m` the maximum number of steps.

`progress('_end')` ends the progress bar.

`progress('_erase')` ends the progress bar and removes if from the command window, restoring it to the way it was before the progress bar was initiated.

`progress(message)` ends the progress bar and adds message after the bar.

`progress(..., opts)` uses options from the struct opts. See below.

## Options

`opts.percentageLength`: sets the number of characters reserved for the percentage display (default: 5)

`opts.barLength`: sets the number of characters reserved for the progress bar (default: 48)

`opts.charEmpty`: sets the "empty" character (default: '.')

`opts.charFilled`: sets the "filled" character (default: '#')

引用格式

Yarmo Mackenbach (2024). progress (https://github.com/YarmoM/progress), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Spreadsheets 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.1

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库