help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the value of the path command


From: Miquel Cabanas
Subject: Re: Changing the value of the path command
Date: Thu, 01 Apr 2004 16:11:04 +0200
User-agent: Mutt/1.3.28i

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, address@hidden 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 (address@hidden)
------------------------------------------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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]