Code covered by the BSD License  

Highlights from
A Simple Progress Bar

Be the first to rate this file! 15 Downloads (last 30 days) File Size: 6.48 KB File ID: #24471
image thumbnail

A Simple Progress Bar

by Shameemraj Nadaf

 

18 Jun 2009

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

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
22 Feb 2010 Rashed

Thanks. I was looking for something like this.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Shameemraj Nadaf 18 Jun 2009 16:38:43
gui Shameemraj Nadaf 18 Jun 2009 16:38:43
gui Damir Husadzic 20 Jan 2012 08:12:07

Contact us at files@mathworks.com