help-octave
[Top][All Lists]
Advanced

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

Re: Changing your directory


From: Andy Adler
Subject: Re: Changing your directory
Date: Sat, 26 Feb 2005 10:28:35 -0500 (EST)

On Fri, 25 Feb 2005, Vic Norton wrote:

> How do I set my working directory?
>
> Say I start with
>     octave> myBaseDir = "/Volumes/VTN Junk/Octave"
> I would like to say
>     octave> chdir myBaseDir
> but that doesn't work. Octave says myBaseDir isn't a directory.
> The command
>     octave> chdir "/Volumes/VTN Junk/Octave"
> works fine, but that is not what I want. I want to set my directory
> from the variable myBaseDir.

Just to point out that this will not work under matlab either.

As others have pointed out, you must say
   cd /path/to/dir or
   cd '/path/to/dir' or
   dir= '/path/to/dir' ; cd( dir )

in matlab or octave
--
Andy Adler




-------------------------------------------------------------
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]