-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjobskript_mp.m
58 lines (49 loc) · 1.16 KB
/
jobskript_mp.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
54
55
56
57
58
jobs=1;
jobnumber=0;
jobs = menu(sprintf('Do you want to add a job?'),...
'Yes','No','Load','Cancel');
if jobs==3
cd(matlabroot)
load('job.mat');
jobnumber=job{2,1};
jobs = menu(sprintf('Do you want to add another job?'),...
'Yes','No','Cancel');
if jobs==3
jobs==4;
end
end
if jobs==1
while jobs==1
jobnumber=jobnumber+1;
[FileNameBase,PathNameBase,filenamelist]=filelist_generator;
job(1,jobnumber)={PathNameBase};
job(2,1)={jobnumber};
cd(PathNameBase);
[grid_x,grid_y]=grid_generator(filenamelist(1,:),PathNameBase);
jobs = menu(sprintf('Do you want to add another job?'),...
'Yes','No','Save','Cancel');
if jobs==3
cd(matlabroot)
save('job')
jobs = menu(sprintf('Do you want to add another job?'),...
'Yes','No','Cancel');
if jobs==3
jobs==4;
end
end
end
end
if jobs==4
return
end
if jobs==2;
if jobnumber==0
return
end
for i=1:jobnumber
i
job{1,i}
cd(job{1,i})
automate_image_mp_2009b;
end
end