Console/Text Wait Bar
Version 1.0.4 (1.75 KB) by
Amal Joy
A wait bar that displays on the MATLAB console
cwbar.m - a command line waitbar
usage:
Initalize the bar:
cwbar(startmsg); % where startmsg is any string not starting
% with '!', startmsg will appear before the bar
Update the bar in a loop:
cwbar(p); % where p is a number from 0 to 1
Finalize the bar
cwbar(endmsg); % where endmsg is any string starting with '!'.
% endmsg(2:end) will appear after the bar followed
% by a new line
Date : 09/10/2021
Author: Amal Joy
Cite As
Amal Joy (2024). Console/Text Wait Bar (https://www.mathworks.com/matlabcentral/fileexchange/99054-console-text-wait-bar), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.