Set environment variable before startup
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I am running Matlab 2009a on Ubuntu 11.04.
I want to change the startup directory of matlab and I have found in the documentation the following instructions
"You can specify that the userpath be the startup directory by setting the value of the environment variable MATLAB_USE_USERPATH to 1 prior to startup. By default, userpath is userhome/Documents/MATLAB, and MATLAB automatically adds the userpath directory to the top of the search path upon startup."
How precisely do I change the value of the environment variable before startup? I am still a linux newbie, so detailed instructions would be greatly appreciated.
Many thanks
4 Commenti
Daniel Shub
il 14 Ago 2011
Are you starting MATLAB from the command line or from a launcher? If you are starting it from a launcher, what DE are you using (e.g., Gnome 2.x, Gnome 3, KDE, etc)?
Risposta accettata
Walter Roberson
il 14 Ago 2011
Edit your ~/.profile to contain
export MATLAB_USE_USERPATH=1
Beyond that, please see the section "Assigning userpath as the Startup Folder on a UNIX or Macintosh Platform" in userpath
3 Commenti
Walter Roberson
il 14 Ago 2011
I do not know why it does that, but the userpath() documentation does say more than once that this userpath processing only applies if the userpath is not changed in startup.m, so it _is_ documented behavior.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!