Matlab Database > Miscellaneous > progress window (singPro V 2.2)

Matlab File(s)

Title: progress window (singPro V 2.2)
Author: Johannes Judex
Institution: Paul Scherrer Institut (ETH Zürich)
Description: singPro comes as version 2.1 it will only monitor one process. For monitoring several processes have a look at were you will find several more or less usefull progress bars, timebars etc. To describe the functionality i will just print down the help text of the m file:

% [H_prog]=singPro(upProg,upText,upInfo)
%     initializes and updates a general progresssbar
%     and returns the handle H_prog of the
%     window.
%     The first call of singPro initializes a new
%     progressbar, if it does not exist yet. If singPro
%     is launched without arguments, then the current
%     progressbar will be closed. The value of H_prog
%     returned will be -1.
%     singPro(upInfo) with only one argument will
%     update the information text 'upInfo' which is just
%     a hint what Matlab is currently doing.
%     singPro(upProg,upText) with two arguments updates
%     both: the progressbar 'upProg' which has to be a
%     value between 0 and 1 and is usually proportional
%     to to the quotient (current loop)/(total loops).
%     If this value is not known it has to be estimated.
%     from converging time.
%     singPro(upProg,upText,upInfo) updates all three
%     parameters.
%     The window handle H_prog can be used to manipulate
%     the appearance of the window. See Matlab help for
%     further information about window settings. Another
%     solution is to change the appearance in this file
%     directly.
%     To stop the running simulation or calculations just
%     hit the 'escape' button in the progress window. Then
%     the progress window will be closed and all variables
%     will be cleared using the 'clear' command. This will
%     cause Matlab to immediately terminate all running
%     scripts, which is quick and dirty but works on Windows
%     platforms, since there is no kill command like we know
%     from unix systems.


% initializing at first call
singPro('starting signal processing routine ...');
for i =1:n
singPro(i/n,[Num2Str(i/n*100) ' % done, ' Num2Str((n-i)*toc/i) ' seconds to go'], ['calulating probability function'])
% here will follow the calculations
singPro('process finished');
%here can follow more calculations

singPro; %terminate program
Keywords: progress bar, progress window
File Name: singPro.m
File Size: 9 KB
File Version: 2.2
Matlab Version: 6.5 (R13)
Date: 2005-02-05
Downloads: 1901
Download File

Upload your own files today! Click here for more information.