Text progress bar (CLI & GUI)

Generates a progressbar for display in the MATLAB command window or CLI

You are now following this Submission

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 (2026). Text progress bar (CLI & GUI) (https://www.mathworks.com/matlabcentral/fileexchange/66270-text-progress-bar-cli-gui), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2016b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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