load data

Michael Grossbach michael at grossbach.org
Tue Jul 7 10:14:06 CDT 2009


agronomist wrote:
> 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.
> 
> 
> 
> Your command should read
> A = load("U:\Octave\datafile.dat");
> 
> not
> 
> A = load("U:Octave\datafile.dat");
> 
> (mind the backslash after the drive letter).
> 
> Michael

Sorry, my bad, it should read either
A = load("U:\\Octave\\datafile.dat");
or
A = load('U:\Octave\datafile.dat');

So you either use the Octave-style double quotes to delimit strings, 
then you have to escape the \ with an additional \, or you use single 
quotes ' and only need one \ in a Windows/DOS path.


Michael


More information about the Help-octave mailing list