forked from gpstuff-dev/gpstuff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.m
28 lines (25 loc) · 921 Bytes
/
startup.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
% If Matlab is started in GPstuff root directory, this startup.m
% adds subfolders automatically to the path
F = mfilename;
S = which(F);
if exist('OCTAVE_VERSION', 'builtin')
subfolders={'diag' 'dist' 'gp' 'mc' 'misc' 'optim' 'tests', 'octave_compat', 'inputparser'};
else
subfolders={'diag' 'dist' 'gp' 'mc' 'misc' 'optim' 'tests'};
end
for sf=subfolders
addpath(strrep(S,[F '.m'],sf{:}))
end
% Alternatively copy following lines to startup.m in MATLAB startup folder
% and edit gpstuffroot to point where you have installed the GPstuff
%gpstuffroot='/...'
%addpath([gpstuffroot 'diag'])
%addpath([gpstuffroot 'dist'])
%addpath([gpstuffroot 'gp'])
%addpath([gpstuffroot 'mc'])
%addpath([gpstuffroot 'misc'])
%addpath([gpstuffroot 'optim'])
%addpath([gpstuffroot 'tests'])
% If using Octave version of GPstuff, also add the following
%addpath([gpstuffroot 'inputparser'])
%addpath([gpstuffroot 'octave_compat'])