-
Notifications
You must be signed in to change notification settings - Fork 2
/
add_toolboxes_paths.m
33 lines (30 loc) · 2.02 KB
/
add_toolboxes_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
33
% optional defaults settings: title font weight normal, docked figures
set(0,'DefaultAxesTitleFontWeight','normal'); set(0,'DefaultFigureWindowStyle','docked');
addpath('functions/')
if exist('toolboxes','dir')>0
addpath('toolboxes/')
% using these publicly available MATLAB toolboxes:
% needed for PLOTS:
addpath('toolboxes/heatmaps') % https://mathworks.com/matlabcentral/fileexchange/24253-customizable-heat-maps
addpath('toolboxes/redblue'); % https://mathworks.com/matlabcentral/fileexchange/25536-red-blue-colormap (for redblue colormaps)
% optional for generating and saving plots
% for subplots with smaller gaps:
addpath('toolboxes/tight_subplot') % https://mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
% export figures as EPS or PDF as they appear on plots: https://mathworks.com/matlabcentral/fileexchange/23629-export_fig
export_fig_name=dir('toolboxes/altman*'); export_fig_name=export_fig_name.name; addpath(strcat('toolboxes/',export_fig_name))
% optional for PARAMETER FITTING by simulated annealing:
addpath('toolboxes/anneal') % https://mathworks.com/matlabcentral/fileexchange/10548-general-simulated-annealing-algorithm
% optional for maximal distinguishable colors on plots
addpath('toolboxes/distinguishable_colors/')
disp('external libraries added')
elseif exist('anneal','dir')>0
addpath('heatmaps') % https://mathworks.com/matlabcentral/fileexchange/24253-customizable-heat-maps
addpath('redblue'); % https://mathworks.com/matlabcentral/fileexchange/25536-red-blue-colormap (for redblue colormaps)
addpath('tight_subplot') % https://mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
export_fig_name=dir('altman*'); export_fig_name=export_fig_name.name; addpath(strcat('',export_fig_name))
addpath('anneal') % https://mathworks.com/matlabcentral/fileexchange/10548-general-simulated-annealing-algorithm
addpath('distinguishable_colors/')
disp('external libraries added')
else
disp('unzip toolboxes.zip for the external libraries')
end