A Simple Progress Bar

A Simple progress bar made by using the matlab axes and patch objects.

Vous suivez désormais cette soumission

Progress bar becomes very essential in case of the functions which consume very long time for computations. This package consists of a Matlab figure along with its corresponding m file. Inside the m file you can see how the patch object can be used along with an existing axes to create a progress bar. There are 3 important things for creating the progress bar with existing axes.

1. to set the buttondown function of the axes to be used , current figure and the patch. (changecolor function is the buttondown function here)
2. change Facecolor of patch. (changecolor function)
3. update the xData of the patch and use drawnow command to reflect the color change on the axes being used.

when you hit the start button the axes and the corresponding text become visible and according to a for loop written inside the start button callback function the progress bar is updated.

Citation pour cette source

Shameemraj Nadaf (2026). A Simple Progress Bar (https://fr.mathworks.com/matlabcentral/fileexchange/24471-a-simple-progress-bar), MATLAB Central File Exchange. Extrait(e) le .

Catégories

En savoir plus sur App Building dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0