-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStartup_DiffusionGeometry.m
More file actions
34 lines (24 loc) · 1006 Bytes
/
Startup_DiffusionGeometry.m
File metadata and controls
34 lines (24 loc) · 1006 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
33
function Startup_DiffusionGeometry(BaseDirectory)
% Startup_DiffusionGeometry adds the various directories used by the diffusion geometry code
% to the current path. Startup_DiffusionGeometry will assume the current directory is the
% base directory unless another directory is specified
fprintf('Startup_DiffusionGeometry.m: setting diffusion geometry paths ... \n');
if nargin==0
Prefix = [pwd filesep];
else
Prefix = [BaseDirectory filesep];
end;
% choose your nearest neighbors code by changing this line
appendpath(([Prefix]));
appendpath(([Prefix 'Diffusions']));
appendpath(([Prefix 'NearestNeighbors']));
appendpath(([Prefix 'Utils']));
appendpath(([Prefix 'Examples']));
appendpath(([Prefix 'CoverTrees']));
appendpath(([Prefix 'Examples/datasets']));
fprintf('Startup_DiffusionGeometry.m: disabling case sensitivity warning ... \n');
warning('off','MATLAB:dispatcher:InexactMatch');
function appendpath(string)
fprintf('\t%s\\ \n', string);
addpath(genpath(string));
return;