forked from Slepian/Slepian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initialize_octave.m
42 lines (35 loc) · 1007 Bytes
/
initialize_octave.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
%graphics_toolkit('fltk')
% Try to load packages.
% If package is not installed, download and install it.
% This may take a few minutes.
try pkg load io
catch
disp('Installing io pkg from forge. This may take a while.')
pkg install -forge io
disp('done')
pkg load io
end
try pkg load statistics
catch
disp('Installing statistics pkg from forge. This may take a while.')
pkg install -forge statistics
disp('done')
pkg load statistics
end
addpath('./octave_funcs')
initialize
try poly2cw
catch
warning('poly2cw does not yet exist in the mapping package.')
% disp('This will lead to problems when trying to prepare named regions.')
% disp('Hopefully poly2cw will become available soon in the Octave mapping or geometry package.')
% disp('Try updating your packages by running:')
% disp('pkg update')
end
try polybool
catch
warning('polybool does not yet exist in the mapping package.')
end
do_braindead_shortcircuit_evaluation (1)
% Too many warnings in octave
warning('off')