Text Wait/Progress Bar

Version 1.0.1 (1.68 KB) by Xiaoxuan He
A command line version of waitbar() that prints progress in percentage.
209 Downloads
Updated 24 May 2019

View License

This is a command line version of waitbar(). Got inspired by Paul's version but tried to rewrite it in a simpler way, so that other people may find it easier to use or modify.

Usage:
Put it in your for loop. The function will update text message only when the percentage changes, therefore there's no need to add pause() in the loop. For example:

for i = 1:n
textwaitbar(i, n, msg);

% Your execution code.
...
...
...
end

Cite As

Xiaoxuan He (2025). Text Wait/Progress Bar (https://www.mathworks.com/matlabcentral/fileexchange/71638-text-wait-progress-bar), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Loops and Conditional Statements in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

Renewed image.

1.0.0