progress

Simple command line progress bar
17 download
Aggiornato 27 set 2019

## 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: '#')

Cita come

Yarmo Mackenbach (2025). progress (https://github.com/YarmoM/progress), GitHub. Recuperato .

Compatibilità della release di MATLAB
Creato con R2010a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!

Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate

Versione Pubblicato Note della release
1.0.1

Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.