-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathsetup.m
More file actions
32 lines (30 loc) · 674 Bytes
/
Copy pathsetup.m
File metadata and controls
32 lines (30 loc) · 674 Bytes
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
% Setup script
% 01-25-2018
% Okba Bekhelifi, <okba.bekhelif@univ-usto.dz>
% add toolbox folder to path
if (~isdir('datasets'))
mkdir('datasets');
end
% add report folder
if(~isdir('reports'))
mkdir('reports');
end
%
folders = dir;
folders_idx = cell2mat({folders.isdir});
folders = folders(folders_idx);
folders = {folders(4:end).name};
% dep_idx = strfind(folders, 'dependencies');
% dep_idx_logic = ~cellfun(@isempty, dep_idx);
% folders(dep_idx_logic) = [];
% install dependencies
pth = strcat({[pwd '\']}, folders);
p =[];
for i=1:length(pth)
p = [p genpath(pth{i})];
end
pth = strcat(p, ';', pwd);
addpath(pth);
savepath
disp('Setup completed.');
clear