From help-octave-request at bevo dot che dot wisc dot edu Thu Apr 1 08:19:41 2004 Subject: Re: Changing the value of the path command From: Miquel Cabanas To: Stephane dot Boffin at Dalsasemi dot Com Cc: help-octave at bevo dot che dot wisc dot edu Date: Thu, 01 Apr 2004 16:11:04 +0200 hello, type "help path" at the octave prompt for more info. Briefly, you can save the current path to a string, as in octave:1> initial_path = path () initial_path = :/home/miquel/Octave//: where the trailing double forward slash indicates Octave to look under all subdirectories under the path To append a directory to the path, octave:2> path(LOADPATH,"/home/miquel/temp//") ans = :/home/miquel/Octave//::/home/miquel/temp:/home/miquel/temp// where LOADPATH contains the current path. To set a new path and discard the current one simply drop LOADPATH octave:3> path("/home/miquel/temp//") ans = /home/miquel/temp:/home/miquel/temp// since I save the initial path, I can recover it by simply typing, octave:4> path(initial_path) ans = :/home/miquel/Octave//: Miquel On Thu, Apr 01, 2004 at 08:47:30AM -0500, Stephane dot Boffin at Dalsasemi dot Com wrote: > How can I change the path setting of octave. > > when I type "path" in octave I get: > . > /usr/local/libexec/octave/2.1.57/site/oct/sparc-sun-solaris2.9// > ... > > I want to change this value. -- Miquel E Cabanas ------------------------------------------------------ SeRMN, Universitat Autonoma de Barcelona (Miquel dot Cabanas at uab dot es) ------------------------------------------o-oo--ooo---ooo--oo-o-------- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------