help-octave
[Top][All Lists]
Advanced

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

Re: How to use environment variables in the addpath command?


From: Bill Denney
Subject: Re: How to use environment variables in the addpath command?
Date: Thu, 01 May 2008 06:37:17 -0400
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

Ernest L. Williams Jr. wrote:
How does one achieve the following in octave 3.0.1?


addpath("$MY_VAR/lib/$HELLO_WORLD")

I get the following error:
warning: addpath: $MY_VAR/lib/$HELLO_WORLD: No such file or directory
You want to do something like

addpath ([getenv("MY_VAR") "/lib/" getenv("HELLO_WORLD")])

Have a good day,

Bill


reply via email to

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