-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathstartup.m
38 lines (29 loc) · 1.16 KB
/
startup.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
34
35
36
37
38
%STARTUP MATLAB startup file (kind of octaverc).
addpath('m');
configGliderToolboxPath;
%% External libraries
[glider_toolbox_dir, ~, ~] = fileparts(mfilename('fullpath'));
ext_lib_path = fullfile(glider_toolbox_dir, 'ext_lib', 'lib'); % 'octave', 'packages');
disp(strcat({'Loading libraries at '}, ext_lib_path, '...'));
% snctools: NetCDF library preferences.
% patched version for text attribute encoding.
disp('....... mexcdf');
disp(' ==> mexnc');
addpath(fullfile(ext_lib_path, 'mexcdf', 'mexnc'));
disp(' ==> snctools');
addpath(fullfile(ext_lib_path, 'mexcdf', 'snctools'));
disp(' (set prefs to use java)');
setpref('SNCTOOLS', 'USE_JAVA', true);
% m2html: inline html documentation generator.
disp('....... m2html');
addpath(fullfile(ext_lib_path, 'm2html'));
% M_Map: mapping toolbox.
disp('....... m_map');
addpath(fullfile(ext_lib_path, 'm_map'));
% seawater: CSIRO Sea Water Library.
disp('....... seawater');
addpath(fullfile(ext_lib_path, 'seawater'));
% override: overridden functions because of known bugs.
%disp('....... override');
%addpath(fullfile(ext_lib_path, 'override'));
disp([mfilename('fullpath'), ' loaded.']);