Timer with Status Bar

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

You are now following this Submission

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 (2026). Timer with Status Bar (https://www.mathworks.com/matlabcentral/fileexchange/29714-timer-with-status-bar), MATLAB Central File Exchange. Retrieved .

Categories

Find more on App Building in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0