Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (47 sloc) 1.39 KB
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