help-octave
[Top][All Lists]
Advanced

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

Re: Changing your directory


From: Paul Probert
Subject: Re: Changing your directory
Date: Fri, 25 Feb 2005 17:11:19 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707

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.

This has got to be trivial, but I don't know how to do it.

Regards,

Vic

This is going to make you mad...
chdir(myBaseDir)

Paul Probert



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