help-octave
[Top][All Lists]
Advanced

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

Re: pass sting as function argument?


From: John W. Eaton
Subject: Re: pass sting as function argument?
Date: Sat, 20 Sep 2008 00:13:51 -0400

On 20-Sep-2008, Avraham Rosenberg wrote:

| I never used octave on MS windows, but knowing that octave is developed on
| a Unix-like system, and knowing the way Unix treats the backslash, I would
| suggest to try and use double back-slashes:
| mat2tx('c:\\octave\\myfile\\data1.mat', 'c:\\octave\\myfile\\data1.txt');

No, backslashes are only treated as escape characters inside
double-quoted strings in Octave 3.x.  They are not special inside
single-quoted strings.

| I do not know how the MS windows version of octave reacts to ":" (the column
| sign) in the file name. If possible, try to write the directories relative to
| your working directory, to avoid using it.

I wouldn't expect that to be a problem either.

jwe


reply via email to

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