progress window (singPro V 2.2)
Paul Scherrer Institut (ETH Zürich)
singPro comes as version 2.1 it will only monitor one process. For monitoring several processes have a look at www.mathworks.com/matlabcentral 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:
% initializes and updates a general progresssbar
% and returns the handle H_prog of the
% 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
% 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
% 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
%here can follow more calculations
singPro; %terminate program
progress bar, progress window
|File Name: ||singPro.m|
|File Size: ||
|File Version: ||2.2|
|Matlab Version: ||6.5 (R13)|