-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.m
98 lines (81 loc) · 1.77 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
function [] = startup()
mypath = pwd;
disp('starting from root ...')
% lib_extern
cd lib_extern/;
startup;
cd(mypath);
% lib
cd libsrc/;
startup;
cd(mypath);
% core
cd core/;
startup;
cd(mypath);
% data
cd data/;
addpath(pwd);
cd(mypath);
% set command window format
format compact
format short g
% turn beep on
beep on
set(0, 'DefaultAxesBox', 'on');
set(0, 'DefaultTextFontSize', 14);
set(0, 'DefaultAxesFontSize', 16);
setenv EDITOR vim;
% diary on
% set random state AT THE VERY LAST so that toolbox packages won't overwrite
rng('default')
rng('shuffle')
rng_state = rng()
% diary off
% disp('starting...')
%
% setenv('EDITOR','vim');
% mypath = pwd;
% cd('../libsrc/gpml');
% startup;
% cd(mypath);
%
% % set random state
% rand ('state', sum(100*clock));
% randn('state', sum(100*clock));
%
% % set command window format
% format compact
% format short g
%
% % turn beep on
% beep on
%
% % set some other default values
% % set(0, 'RecursionLimit', 50);
% % set(0, 'DefaultFigurePaperType', 'A4');
% % set(0, 'DefaultFigureWindowStyle', 'normal');
% set(0, 'DefaultAxesBox', 'on');
% set(0, 'DefaultTextFontSize', 14);
% set(0, 'DefaultAxesFontSize', 16);
% % set(0, 'DefaultUicontrolFontSize', 8);
% % recycle('off');
% % warning on all
% % warning on backtrace
%
% setenv EDITOR vim;
%
% %dependents
% subdirs = ls('-d','*/');
% while ~isempty( sscanf(subdirs, '%s/%s') )
% [subdir, subdirs] = strtok(subdirs);
% addpath([pwd, '/', subdir]);
% end
% % library
% addpath(genpath([mypath,'/../libsrc/']));
% % data
% addpath([mypath,'/../data/']);
% addpath('/auton/data/graphGP/assorted/');
%
% % clearvars
%