Timer with Status Bar

Implementation of a status bar (progress bar) using patches.

1K Downloads

Updated 14 Dec 2010

View License

Last year, while using guide to build a GUI, I noticed that there is not a status bar component. So, since I knew how to create rectangles using patches, I thought I would try to create a status bar.
I started by placing an axes inside the figure. I created a timer that can go up to two minutes. Based on the elapsed time and the total time in the timer (which the user can select), I removed the previous rectangle and then patched a new one. The process continued until the time limit was met, or until the user pressed the Stop button.

Cite As

Gustavo Orellana (2023). Timer with Status Bar (https://www.mathworks.com/matlabcentral/fileexchange/29714-timer-with-status-bar), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

TimerWithStatusBar/

Version Published Release Notes
1.0.0.0