-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_reverse.m
53 lines (36 loc) · 1.34 KB
/
main_reverse.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
function main_reverse
% __________________________________________________
% Installation des prérequis
addpath('./utils');
% __________________________________________________
% Récupération de la configuration
[n, fname] = config_reverse(0);
% __________________________________________________
% Barres de progression
ParentProgress = waitbar(0.0, 'Reverse simulation');
pos_w1=get(ParentProgress,'position');
pos_w2=[0 100 pos_w1(3) pos_w1(4)];
set(ParentProgress,'position',pos_w2,'doublebuffer','on')
Progress = waitbar(0.0, 'Progression');
pos_w1=get(ParentProgress,'position');
pos_w2=[pos_w1(1) pos_w1(2)+pos_w1(4) pos_w1(3) pos_w1(4)];
set(Progress,'position',pos_w2,'doublebuffer','on')
for simu=0:n
% __________________________________________________
% Configuration de la simulation
[n, fname] = config_reverse(simu);
if n != 0
waitbar(simu/n, ParentProgress, sprintf('Reverse %s', fname));
else
waitbar(1, ParentProgress, sprintf('Reverse %s', fname));
end
% __________________________________________________
% Run simulations
fprintf('Reverse simulation for: %s ...\n', fname);
process_reverse(fname, Progress);
end
% __________________________________________________
% End
close(Progress);
close(ParentProgress);
endfunction