PRTools contents |
PRWAITBARINIT
[N,S,COUNT] = PRWAITBARINIT(STRING,N)
Input | |
STRING | String with text to be written in every waitbar, e.g. 'Processing %i items: '. This will be parsed by S = SPRINTF(STRING,N); |
N | Total number of items to be processed |
Output | |
N | Resulting N (Input N may be expression) |
S | Resulting STRING (see above) |
COUNT | Counter initialisation, COUNT = 0 |
[n,s,count] = prwaitbarinit('Processing %i items:',size(a,1)*size(a,2));
for i=1:size(a,1)
for j=1:size(a,2)
< process a(i,j) >
count = prwaitbarnext(n,s,count);
end
end
PRWAITBARINIT and PRWAITBARNEXT are written on top of PRWAITBAR. If it is possible that loops like the above are not fully processed, it is necessary to include as a final call PRWAITBAR(0)
PRTools contents |