-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.m
27 lines (23 loc) · 1.36 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
% When Matlab starts up, it looks for a file called startup.m in the
% directory (folder) in which it is being started. If such a file is
% found, then it is automatically executed as part of Matlab's start-up
% procedure. The line at the end of this file tells Matlab to add the
% directory '/home/users/roy/booksoft/spatial_v2', and all of its
% subdirectories, to Matlab's command search path. An action like this is
% necessary if Matlab is to find all of the functions in spatial_v2.
% WHAT YOU MUST DO:
% (1) Replace the string '/home/users/roy/booksoft/spatial_v2' with the
% full path name of your directory spatial_v2 (keeping the two
% single-quotes that delimit the string). For example, on a Windows
% PC, if you downloaded spatial_v2.zip to the folder C:\user\john and
% unzipped it there, then the replacement string will be
% 'C:\user\john\spatial_v2'.
% (2) Copy this file to each directory in which you want Matlab to have
% access to spatial_v2 when it starts. If there is already a file
% startup.m in that directory, then simply add the (edited) line
% below to that file.
% disable Alt shortcuts
com.mathworks.desktop.mnemonics.MnemonicsManagers.get.disable
addpath( genpath('/home/andre/Optimisation') );
setenv('SNOPT_LICENSE','/home/andre/Optimisation/include/SNOPT/linux/snopt7.lic')
setenv('LD_LIBRARY_PATH','/usr/local/lib/')