1 %> @ingroup globals usercomm
3 %> @brief Creates progress bar.
5 %> This version does not use globals
7 %> @param title=
'' Title
8 %> @param perc=0 Percent
9 %> @param i=[] Iteration number
10 %> @param n=[] Number of iterations
14 if nargin < 1 || isempty(title)
17 if nargin < 2 || isempty(perc)
20 if nargin < 3 || isempty(i)
23 if nargin < 4 || isempty(n)
27 prgrss.bars(1).title = title;
28 prgrss.bars(1).perc = perc;
31 prgrss.bars(1).tic = tic();
32 prgrss.bars(1).tic_lastcall = [];
33 prgrss.bars(1).sid = sprintf('P
#%04d', floor(rand(1, 1)*9999));
function progress2_open(in title, in perc, in i, in n)
function progress2_show(in prgrss)