load data

Przemek Klosowski przemek at jazz.ncnr.nist.gov
Wed Jul 8 13:40:56 CDT 2009


   typing 
   A = load("U:\Octave\datafile.dat");
   gives:

   warning: unrecognized escape sequence '\O' -- converting to 'O'
   error: load: unable to find file U:Octave

   It seems like Octave for some reason cant handel our network drive system.

No, the problem is that within double-quoted strings \ is interpreted
as part of escape sequences. Actually you should have gotten the same
error when you used load("U:Octave\datafile.dat")---are you sure that
that's what you used before and that there was no error message?

You should double up the backslash:   A = load("U:\\Octave\\datafile.dat");


More information about the Help-octave mailing list