Text progress bar (CLI & GUI)

Generates a progressbar for display in the MATLAB command window or CLI
252 Downloads
Updated 13 Dec 2019

View License

This function generates a textual bar which visualizes the progress of a task. Consecutive progress bars overwrite the previous instance instead of outputting on a new line, making updates seamless.
The number of segments as well as the characters which make up the progress bar (delimiters, completed, ...) are fully customizable.
Works for both GUI and CLI instances of MATLAB.

Cite As

Girmi Schouten (2024). Text progress bar (CLI & GUI) (https://www.mathworks.com/matlabcentral/fileexchange/66270-text-progress-bar-cli-gui), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with R2016b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

Improved out of bounds handling and simplified code.

1.2.0.0

Updated character (cell) arrays to string arrays.
Percentage completed below 0 or above 1 now fails silently.

1.1.0.0

Using separate default characters for Windows because of Unicode incompatibility and improved documentation .
Improved title and tags

1.0.0.0

Expanded summary & description