-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSingleRun.m
More file actions
31 lines (23 loc) · 1.14 KB
/
Copy pathSingleRun.m
File metadata and controls
31 lines (23 loc) · 1.14 KB
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
clc
cd(evalin('base','exp_path'));
Filescsv = dir(strcat('*.csv'));
Filesxlsx = dir(strcat('*.xlsx'));
Files = [Filesxlsx;Filescsv];
if length(Files) >1
disp(['Single run started, but more than one datasheet (',num2str(length(Files)),' datasheets) found. Codes shifted to BATCH run with CONSTANT inputs. Good luck!'])
else
disp('Single run started - one datasheet found. Good luck!')
end
assignin('base','Files',Files);
cd ..
for tttttttt = 1:length(Files)
files_ = evalin('base','Files');
disp('###################################################################################################################')
disp(['Datasheet ',num2str(tttttttt),' of ',num2str(length(files_))])
file_name = files_(tttttttt).name;
assignin('base','datasheet_name',file_name);
run ECM_Easy.m
end
disp('###################################################################################################################')
disp('Congratulations!!! Mission accomplished !!! Please go to the folder \Results\ to check all the results.')
disp('(For debugging (or donation) purpose, please contact tao.zhu@imperial.ac.uk :D)')