forked from TUDsun/CC-CSI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_path.m
50 lines (36 loc) · 1.49 KB
/
add_path.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
function add_path()
dirc = [matlabroot filesep 'toolbox' filesep 'maxwellfdfd-master'];
% dirc = [pwd filesep 'maxwellfdfd-master'];
if ~contains(path, dirc)
addpath(dirc);
addpath([dirc, filesep, 'base']);
addpath([dirc, filesep, 'diff']);
addpath([dirc, filesep, 'dielconst']);
addpath([dirc, filesep, 'grid']);
addpath([dirc, filesep, 'integ']);
addpath([dirc, filesep, 'io']);
addpath([dirc, filesep, 'material']);
addpath([dirc, filesep, 'modesolver']);
addpath([dirc, filesep, 'petsc']);
addpath([dirc, filesep, 'shape']);
addpath([dirc, filesep, 'source']);
addpath([dirc, filesep, 'vis']);
end
dirc = [pwd, filesep, 'classes'];
if ~contains(path, dirc); addpath(dirc); end
dir = [pwd, filesep, 'functions'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'FresnelData'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'FresnelData', filesep, 'The_first_opus'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'FresnelData', filesep, 'The_second_opus'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'FresnelData', filesep, 'The_third_opus'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'ndSparse_G3_2013_03_13'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'DGradient'];
if ~contains(path, dir); addpath(dir); end
dir = [pwd, filesep, 'MaxwellFDFD_add'];
if ~contains(path, dir); addpath(dir); end