help-octave
[Top][All Lists]
Advanced

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

Re: load data


From: Michael Grossbach
Subject: Re: load data
Date: Tue, 07 Jul 2009 17:14:06 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

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


reply via email to

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