Matlab Progress Bar

This zip file contain 3 files:
progressbar.m - the progress bar
gui_active.m - polling function to be used in the runnig application (optional)
gauge_abort_icon.mat - the icon on the button (optional button)
Directions:
place 3 files in the same folder, and let MATLAB "know" it's path.
you can create as many progressbars as you want, and update each of them using a unique handle.
if a progress bar is closed using the "X" button on the upper-right corner of the progressbar, the function will create it again with it's same state, see example below (use copy-paste)
progressbar - shows a progress bar dialog based on the function "waitbar"
 
Format: handle = progressbar( handle,increment [,string,titlestr] )
 
Input: handle - handle to current progress bar, [] for a new one increment - a fraction (0..1) to increment by.
(-1) signals the function to remove the handle from the persistant list and close the progressbar
string - a string to be replaced in the progress bar (optional)
titlestr - a title for the dialog box (optional)
 
Output: handle - a graphic handle of the dialog box
 
NOTE: this function uses a persistant list of handles and thier values.
therefore, to delete a progressbar, please call the function with: 
progressbar( handle,-1 );
 
an "abort" button is formed inside the progressbar, if the calling process uses the persistent function "gui_active". when the "abort" button is pressed, the Callback function "gui_active" changes it's value to zero, which enables the application to interactively stop execution
 
Example: gui_active(1); % will add an abort button
h = progressbar( [],0,'my test' );
max_count = 1e 3;
for idx = 1:max_count
fprintf( '%d',idx )';
h = progressbar( h,1/max_count );
if ~gui_active
break;
end
end
progressbar( h,-1 );  Requirements:
· MATLAB Release: R12.1

Related Scripts

  • Sbprogress
    sbprogress stands for Status-Bar Progress. A progress-bar can be created either on the status bar section of an existing figure or as a new progress-b...
  • Progress 0.1.0.2
    A stop command to the script will disbale the progress class as well. Here are some key features of "Progress":· Progress· Enclosed progress...
  • Progress Meter For Execution Of Tasks/loops
    The MATLAB PROGMETER function enables to display the progress and completion of a task / loop dynamically in the command window.The progress meter is ...
  • Progressbar Matlab
    PROGRESSBAR Display, modify, and/or update a progress indicator. PROGRESSBAR is a comprehensive progress indicator for long or repetitive calculations...
  • Jquery Progress
    jQuery Progress is a jQuery plugin  for creating, displaying and animating a progress bar.The progress bar can be used for masking a loading oper...
  • Msgbar
    Shows messages and a progress bar.The user may change between between messages. The progress bar shows how far a job has run.Both messages and the pro...
  • Fast Progress Display
    GETPCT.M is a function that will allow the user to monitor the progress of their job, without the overhead created with waitbar and other gui type pro...
  • Timebar
    TIMEBAR is a progress window, similar to waitbar, that shows the progress of calculations using a sliding bar, a displayed percentage complete, and an...
  • Status Progress Indicator
    Statusbar is a simple GUI to display the progress of a lengthy computation. It displays the current state and the elapsed time as well as the estimate...
  • Progbar
    This is a script based progress bar for MATLAB, simple usage is very simple, more complex usage is available. multiple instances no problem.NOTE: spec...
  • Popup Progress Bar
    Todd's popup progress bar script is used to provide a visual update of an event in progress. Use it, for example, to display a delay before redirectin...
  • Progre(c)ss 1.2.0
    The progress bars are very easy to deploy. Just add some preset classes to the HTML elements that need to display a progress bar.Developers can contro...
  • Stepwise Progress Bar 1.0.3
    The Stepwise Progress Bar UI widget shows the total number of steps a user must go through, highlighting the user's current position, while also maski...
  • Simulation Progress Email Notifier (spen)
    Can be used on time-consuming projects, so the user can leave his computer and get up-to-date notifications on his Gmail account about the project's p...
  • Popup Progress Bar Js
    Popup progress bar script is used to provide a visual update of an event in progress. You can use it, for example, to display a delay before redi...
  • Progress Bar Component
    Progress bar script shows you a Progress bar example....
  • Mp3 Progressbar
    Mp3 ProgressBar is made to help in creating mp3 progress bar. You can sign actions to progress bar so when you click on progress bar sound will s...
  • Under Construction Builder
    It uses jQuery for the progress bar and countdown timer.In the event of the user’s browser having Javascript disabled a static counter will be d...
  • Ode Progress Bar And Interrupt
    This program displays a progress bar indicating where the ode integrator is in the specified time scale. The program allows the premature termination ...
  • Mrprogress 0.4.1
    MRProgress allows developers to display the classic progress bar/circle inside a popup for their iOS apps.Background is dimmed and blurred at the same...
DMCA Notice-Privacy Policy
2004 - 2013 DownScripts. All rights reserved.