-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit_aperture.m
39 lines (33 loc) · 1.23 KB
/
init_aperture.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
function init_aperture()
%INIT_APERTURE Add paths necessary to use Aperture.
%
% init_aperture()
main_dir = fileparts(which('init_aperture'));
% main directories
myaddpath('basic');
myaddpath(fullfile('events', 'creation'));
myaddpath(fullfile('events', 'operations'));
myaddpath(fullfile('events', 'stats'));
myaddpath('patclass');
myaddpath(fullfile('patterns', 'artifacts'));
myaddpath(fullfile('patterns', 'creation'));
myaddpath(fullfile('patterns', 'dimensions'));
myaddpath(fullfile('patterns', 'operations'));
myaddpath(fullfile('plotting', 'figures'));
myaddpath(fullfile('plotting', 'reports'));
myaddpath('resources');
myaddpath('stats');
myaddpath('utils');
myaddpath(fullfile('utils', 'distcomp'));
% external packages
myaddpath(fullfile('external', 'eeglab', 'functions', 'adminfunc'))
myaddpath(fullfile('external', 'eeglab', 'functions', 'sigprocfunc'))
myaddpath(fullfile('external', 'eeglab', 'functions', 'guifunc'))
addpath(genpathsafe(fullfile(main_dir, 'external', 'beh_toolbox')));
addpath(genpathsafe(fullfile(main_dir, 'external', 'eeg_toolbox')));
myaddpath(fullfile('external', 'mvpa', 'core', 'learn'))
myaddpath(fullfile('external', 'mvpa', 'core', 'util'))
function myaddpath(p)
addpath(fullfile(main_dir, p))
end
end