IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
progress_open.m
Go to the documentation of this file.
1 %> @ingroup globals usercomm
2 %> @file
3 %> @brief Opens new progress bar
4 
5 %> @param title='' Title
6 %> @param perc=0 Percent
7 %> @param i=[] Iteration number
8 %> @param n=[] Number of iterations
9 function idx = progress_open(title, perc, i, n)
11 
12 if nargin < 1 || isempty(title)
13  title = [];
14 end;
15 if nargin < 2 || isempty(perc)
16  perc = [];
17 end;
18 if nargin < 3 || isempty(i)
19  i = [];
20 end;
21 if nargin < 4 || isempty(n)
22  n = [];
23 end;
24 
25 global PROGRESS;
26 PROGRESS.bars(end+1).title = title;
27 PROGRESS.bars(end).perc = perc;
28 PROGRESS.bars(end).i = i;
29 PROGRESS.bars(end).n = n;
30 PROGRESS.bars(end).tic = tic();
31 PROGRESS.bars(end).tic_lastcall = [];
32 
33 idx = numel(PROGRESS.bars);
34 
function progress_assert()
function progress_open(in title, in perc, in i, in n)
function progress_show()