octave: adding load path
By malte at Sat, Mar 8 2008 8:22am |
hi guys,
it's a quite simple question but I couldn't find any help in google.
I want to add a directory where octave shall look for functions.
I used the 'addpath' command, but this works just temporarily until i exit octave.
Where can I add a path permanently?
cheers,
malte



Look up "LOADPATH"
There is an argument for the .octaverc file called LOADPATH that you can look up. I don't know myself how to use it, but I think it will solve your problem. Search the octave manual that comes with your Octave distribution for LOADPATH, and you should be able to find all the details.
addpath and savepath
After executing addpath('new_directory'), you can then type savepath and execute with out any arguments, and your new path will be in the default search path for all future sessions. If you want to remove it later: rmpath('new_directory') followed by savepath
Oliver Daniel
Chemical Engineering
University of Virginia
omd7c@virginia.edu