[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: so far so good | but..file I/O
From: |
Roberto Hernandez |
Subject: |
Re: so far so good | but..file I/O |
Date: |
Mon, 11 Feb 2002 21:44:13 -0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205 |
The Windows version of Octave isn't really a native Windows program. It
needs Cygwin, which basically gives you the Linux API on top of a win32
system. Therefore, you need to do everything as if you were using Linux
(hence the "/" instead of "\"). What that means in your case is that you
need to mount the root directory into the cygwin filesystem.
In the Octave bin/ directory you'll find mount.exe. All you need to do
is run "mount C:\ /win" (you can substitute /win for whatever you like).
There's an option that adds this to your registry and makes it
permanent, but I can't remember what it is (mount --help).
Now you'll be able to do:
save -ascii /win/windows/desktop/student
There's a good FAQ on using Octave with Windows at:
http://octave.sourceforge.net.
Regards,
Roberto
Evan Cooch wrote:
Well, thanks to people's kind answers to my question about porting from
MATLAB cell array to Octave's LIST, 95% of the m-files have been
successfully ported to Octave (at least, the m-files that have no
graphics...).
However, one minor thing - I'm currently running the Windoze binary of
Octave (pause for people to gnash their teeth), and am have problems
figuring out how to modify various search paths, and (as important) how
to specify where files are saved. Since students will be using the
software, I'd like them to be able to save files to a student directory.
Call it student. So
save -asciii /windows/desktop/student
or some such (although this doesn't work - it gives me an error saying
that writing to that directory isn't allowed. All saves get dumped into
teh main Octave root directory).
I RTFM as far as I could (the HTML version of same), and didn't see any
obvious pointers to modifying how aspects of file I/O are handled - only
the basic commands.
Thanks!
-------------------------------------------------------------
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
-------------------------------------------------------------