|
|
matlab R14, linux, problem in adding path permanently
Hello
I would like to add a directory with my private .m files permanently to
Matlab.
- first I called pathtool added the path but then when I wanted to
save it, matlab wanted to save the file, pathdef.m in the system
directory /usr/local/matlab7 where I don't have write access and
frankly I don't want to change that. So I saved the file in my
home directory but, no surprise, next time when I started matlab,
matlab ignored the file.
- I presume I need to set a startup directory, but I don't know
how.
- of course I could either have the line
addpath /home/oub/Matlab-files
in every of my scripts or have for each directory a startup.m file with
this line, but all that is cumbersome.
I presume I should edit a system file but I rather would have advice
first.
Could somebody help please?
thanks
Uwe Brauer
|
|
0
|
|
|
|
Reply
|
oub (83)
|
1/23/2010 8:22:58 PM |
|
Uwe Brauer <oub@mat.ucm.es> writes:
> I would like to add a directory with my private .m files permanently
> to Matlab.
Hello Uwe,
ever tried adding 'export MATLABPATH=/home/oub/Matlab-files'
to your ~/.profile file?
> I presume I should edit a system file but I rather would have advice
> first.
After 10+ years of Matlab experience on HP-UX, Solaris, and Linux
I can tell you that you never ever should modify any file of the
Matlab installation in a multi-user environment. My preferred
directory layout for Unix systems is
/opt/matlab-7.1 # vanilla Matlab installation
/usr/local/lib/matlab # system-wide modifications
$HOME/lib/matlab # per-user modifications
--
Ralph Schleicher <http://ralph-schleicher.de>
Development * Consulting * Training
Mathematical Modeling and Simulation
Software Tools
|
|
0
|
|
|
|
Reply
|
Ralph
|
1/24/2010 3:18:44 AM
|
|
>>>>> On Sun, 24 Jan 2010 04:18:44 +0100, Ralph Schleicher <rs+usenet@ralph-schleicher.de> wrote:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> I would like to add a directory with my private .m files permanently
>> to Matlab.
> Hello Uwe,
> ever tried adding 'export MATLABPATH=/home/oub/Matlab-files'
> to your ~/.profile file?
No, it did not work, but something similar in my .tcshrc file worked.
setenv MATLABPATH /home/oub/ALLES/Matlab-init
Thanks!!!!
>> I presume I should edit a system file but I rather would have advice
>> first.
> After 10+ years of Matlab experience on HP-UX, Solaris, and Linux
> I can tell you that you never ever should modify any file of the
> Matlab installation in a multi-user environment. My preferred
> directory layout for Unix systems is
well it is not really a multi-user system. It is a Linux Laptop, but
after also more than 10 years on IBM AIX and Solaris, I prefer the
strict division: user + sys adm and always hesitate to edit system
(conf) files and prefer to do it locally for the user.
Uwe
|
|
0
|
|
|
|
Reply
|
Uwe
|
1/24/2010 10:09:57 AM
|
|
|
2 Replies
278 Views
(page loaded in 0.038 seconds)
|
|
|
|
|
|
|
|
|