-
Notifications
You must be signed in to change notification settings - Fork 1
/
get_paths.m
32 lines (23 loc) · 1.33 KB
/
get_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
function pathStruct = get_paths()
% This function keeps all important path variables. Other functions call
% this function to get paths.
% Author : VK
% Date : 2020.05.05
pathStruct = struct();
pathStruct.root = fileparts(mfilename('fullpath'));
% This file must be in the root folder!!!!
pathStruct.data.main = fullfile(pathStruct.root, "data");
pathStruct.data.CSV = fullfile(pathStruct.data.main, "CSVs");
pathStruct.data.fit = fullfile(pathStruct.data.main, "curveFittings");
pathStruct.checkpoints.main = fullfile(pathStruct.root, "checkpoints");
% Results:
pathStruct.results.main = fullfile(pathStruct.root, "results");
% External Libraries:
pathStruct.ExtLib.main = fullfile(pathStruct.root, "ExternalLibraries");
pathStruct.ExtLib.cbrewer = fullfile(pathStruct.ExtLib.main, "cbrewer", "cbrewer");
pathStruct.ExtLib.RainClouds = fullfile(pathStruct.ExtLib.main, "RainCloudPlots-master", "tutorial_matlab");
pathStruct.ExtLib.RobustStatisticalToolbox = fullfile(pathStruct.ExtLib.main, "Robust_Statistical_Toolbox-master");
pathStruct.ExtLib.customcolormap = fullfile(pathStruct.ExtLib.main, "customcolormap");
pathStruct.ExtLib.dataspace = fullfile(pathStruct.ExtLib.main, "michellehirsch-MATLAB-Dataspace-to-Figure-Units-01f905b");
pathStruct.ExtLib.tightSubplot = fullfile(pathStruct.ExtLib.main, "tightSubplot");
end