-
Notifications
You must be signed in to change notification settings - Fork 1
/
add_plugins.m
47 lines (38 loc) · 951 Bytes
/
add_plugins.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
function add_plugins
% ADD_PLUGINS adds the necessary plugins (if not yet installed) for running all tests
% run EEGLAB to get access to already installed plugins
eeglab nogui
try
PLUGINLIST = evalin('base', 'PLUGINLIST');
installedPlugins = convertCharsToStrings({PLUGINLIST.plugin});
catch
installedPlugins = "";
end
pluginsToInstall = [
"neuroscanio"
"bva-io"
"Biosig"
"Fileio"
"erpssimport"
"Fieldtrip-lite"
"corrmap"
"BDFimport"
"PICARD"
"bids-matlab-tools"
"LIMO"
"erpssimport"
];
% install each plugins with the install subfunction
arrayfun(@install, pluginsToInstall);
function install(plugin)
force = true;
% Only install if it is not yet installed
if all(installedPlugins ~= plugin)
try
plugin_askinstall(plugin, [], force)
catch exc
disp(exc)
end
end
end
end