forked from cultpenguin/mGstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmgstat_set_path.m
49 lines (45 loc) · 1.21 KB
/
mgstat_set_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
% mgstat_set_path : set path to all mGstat
%
% set path to :
% mGstat_Install_Dir/gstat
% mGstat_Install_Dir/snesim
% mGstat_Install_Dir/visim
% mGstat_Install_Dir/sgems
% mGstat_Install_Dir/misc
%
function mgstat_set_path;
ip=0;
ip=ip+1;P{ip}='';
ip=ip+1;P{ip}='gstat';
ip=ip+1;P{ip}='snesim';
ip=ip+1;P{ip}='visim';
ip=ip+1;P{ip}='sgems';
ip=ip+1;P{ip}='misc';
ip=ip+1;P{ip}='mps';
ip=ip+1;P{ip}='mixsim';
ip=ip+1;P{ip}='ti';
for ip=1:length(P);
pa=[mgstat_dir,filesep,P{ip}];
try
mgstat_verbose(sprintf('%s : Adding path to ''%s''',mfilename,pa),0)
addpath(pa);
catch
mgstat_verbose(sprintf('Could not add path to: %s',pa))
end
end
if isoctave==1
% add path to Octave specific functions
pa=[mgstat_dir,filesep,'misc',filesep,'octave'];
try
mgstat_verbose(sprintf('%s : Adding path to ''%s''',mfilename,pa),0)
addpath(pa)
catch
mgstat_verbose(sprintf('Could not add path to Octave specific files: %s',pa))
end
end
succ=savepath;
if succ==0
mgstat_verbose(sprintf('%s : saved path for later session',mfilename),0)
else
mgstat_verbose(sprintf('%s : COULD NOT SAVE PATH for later session',mfilename),0)
end