-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.m
26 lines (21 loc) · 869 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
% startup script to make Octave/Matlab aware of the GPML package
%
% Copyright (c) by Carl Edward Rasmussen and Hannes Nickisch 2016-10-16.
disp(['executing gpml startup script...']);
OCT = exist('OCTAVE_VERSION') ~= 0; % check if we run Matlab or Octave
me = mfilename; % what is my filename
mydir = which(me); mydir = mydir(1:end-2-numel(me)); % where am I located
if OCT && numel(mydir)==2
if strcmp(mydir,'./'), mydir = [pwd,mydir(2:end)]; end
end % OCTAVE 3.0.x relative, MATLAB and newer have absolute path
addpath(mydir(1:end-1))
addpath([mydir,'cov'])
addpath([mydir,'doc'])
addpath([mydir,'inf'])
addpath([mydir,'lik'])
addpath([mydir,'mean'])
addpath([mydir,'prior'])
addpath([mydir,'util'])
addpath([mydir,'util/surrogate'])
addpath([mydir,'util/estimator'])
clear me mydir