« Return to Thread: load data

Re: load data

by Michael Grossbach :: Rate this Message:

Reply to Author | View in Thread

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
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

 « Return to Thread: load data