forked from PrincetonUniversity/princeton-mvpa-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mvpa_add_paths.m
58 lines (47 loc) · 1.39 KB
/
mvpa_add_paths.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
51
52
53
54
55
56
57
58
function [] = mvpa_add_paths()
% Adds the paths necessary to use the MVPA Toolbox. Assumes
% that you've already got this script in your path, and so
% it uses the location of this script to determine the root
% directory of the rest of the MVPA scripts. That way, it
% doesn't need an argument.
%
% Usage: MVPA_ADD_PATHS
% find the root path
rootdir = fileparts(which('mvpa_add_paths'));
% fprintf('Adding MVPA paths (root: ''%s'')...\n', rootdir);
% Add MVPA core paths.
myaddpath('core');
myaddpath('core/ebc');
myaddpath('core/io');
myaddpath('core/learn');
myaddpath('core/preproc');
myaddpath('core/subj');
myaddpath('core/util');
myaddpath('core/util/explode_implode');
myaddpath('core/vis');
myaddpath('core/template');
% Uncomment the following line to restore deprecated functions:
myaddpath('core/deprecated');
% Contrib Paths
myaddpath('contrib');
myaddpath('contrib/io');
myaddpath('contrib/learn');
myaddpath('contrib/learn/adaboost');
myaddpath('contrib/preproc');
myaddpath('contrib/subj');
myaddpath('contrib/template');
myaddpath('contrib/tests');
myaddpath('contrib/util');
myaddpath('contrib/vis');
% Add paths for packages bundled with the toolbox.
% myaddpath('adaboost_mkc');
myaddpath('afni_matlab');
myaddpath('boosting');
myaddpath('bv2mat');
myaddpath('montage_kas');
myaddpath('netlab');
% nested wrapper for adding relative paths
function myaddpath(p)
addpath([rootdir '/' p]);
end
end