matlab-progress-bar

Version 1.0.0 (152 KB) by Kowyo
A tqdm alternative in MATLAB, also a progress bar for any MATLAB program.
68 Downloads
Updated 18 Jun 2024

MATLAB Progress Bar

View matlab-progress-bar on File Exchange

A simple progress bar for MATLAB.

Usage

Please ensure that the progressbar.m file is located within your MATLAB path. The following is an example demonstrating its usage:

for i = 1:100
    progressbar(i, 100); % i is the current iteration, 100 is the total number of iterations
    pause(0.1); % pause can be replaced with your code
end

Why Did I Write This?

I couldn't find a simple progress bar for MATLAB that I could integrate easily into my scripts, so I wrote one. It's simple, and it works.

Instead of waitbar, which blocks the MATLAB window, this progress bar is displayed in the command window, and it doesn't block the execution of the script.

Cite As

Kowyo (2025). matlab-progress-bar (https://github.com/kowyo/matlab-progress-bar), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.