====== How to set the required environment variable for Matlab. ======
(Please note that uppercase and lowercase letters in the value of Variable are significant.)
====== * Linux ======
1) You can write in "~/.bashrc" (or in "~/.profile"):
**export LM_PROJECT=RSiM**
The changes in the file "~/.bashrc" (or in "~/.profile") can be carried out without restarting the bash by the following command:
source ~/.bashrc
or 2) You can write (as root/sudo) in the directory "/etc/profile.d" a file "matlab" with the content
export LM_PROJECT=RSiM
or 3) add (as root/sudo)in the file "/etc/profile"
export LM_PROJECT=RSiM
You can check this by checking your environmental listing :
printenv | grep LM_PROJECT
====== * Mac OS X ======
* 1. OS X 10.9 (Mavericks) and earlier. Add in the file "/etc/launchd.conf"
setenv LM_PROJECT RSiM
Save the file and reboot the machine.
* 2. OS X 10.10 (Yosemite) and later. See [[http://stackoverflow.com/questions/25385934/yosemite-launchd-conf-no-longer-work|http://stackoverflow.com/questions/25385934/yosemite-launchd-conf-no-longer-work]]
Create a script and save it as App. Script-Editort: do shell script "launchctl setenv LM_PROJECT AeS" and save it as document (p. Example as "setosx.scp"). Export it as app (p. Example as "setosx.app") and close script-editor. and Insert app in login items the user. ( >Apple >System Setting > Users & Groups> Your User> Login Items> > + > Documents> setosx.app > Adding> Quit > close System Settings> Logout> Login)
====== * Windows ======
- Windows 7/8: system Settings.
> Windows File Explorer > [ Right Mouse Button ] Computer > Properties > Advanced System Settings> Advanced> Environment Variables > User Variables OR > System variables > New
Variable Name : LM_PROJECT
Value of the variable : RSiM
- Windows 7/8: setx (Prompt)
(See: [[http://technet.microsoft.com/de-de/library/cc755104(v=ws.10).aspx|http://technet.microsoft.com/de-de/library/cc755104(v=ws.10).aspx]] and Help: > setx / ?)
1. Put variable for User:
setx LM_PROJECT RSiM
2. Set system variable : > Run command prompt as an administrator
setx LM_PROJECT RSiM /M
( Note: Blank front / M )
**Please note that uppercase and lowercase letters in the value of Variable are significant!!!!**