-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenv_setup.m
28 lines (22 loc) · 951 Bytes
/
env_setup.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
function env_setup
%% Add toolbox paths
pathOfThisFunction = fileparts(mfilename('fullpath'));
addpath(fullfile(pathOfThisFunction,'darc-toolbox/'))
% Add all subpaths of the main toolbox (darc-toolbox) to the
% path, by calling this function
addSubFoldersToPath()
%% Add experiment-specific functions
temp = genpath(fullfile(pathOfThisFunction,'darc-experiments'));
addpath(temp)
%addpath(fullfile(pathOfThisFunction,'darc-experiments'))
% these are included as local copies in the \dependencies folder
% %% Ensure dependencies are present and added to Matlab path
% try
% dependencies={'https://github.com/drbenvincent/mcmc-utils-matlab' 'https://github.com/altmany/export_fig'};
% checkGitHubDependencies(dependencies);
% catch
% error('If this doesnt work, comment out the lines above, manually add the repo''s.')
% end
%% Plotting preferences
set(0, 'DefaultFigureWindowStyle', 'docked')
mcmc.setPlotTheme('fontsize',12, 'linewidth', 1)