load data

Michael Grossbach michael at grossbach.org
Mon Jul 6 13:10:04 CDT 2009


agronomist wrote:
> 
> Command
> 
> A = load("U:Octave\datafile.dat");
> 
> gives answer: unable to find file U:Octave
> 
> Although that I know the file is in that folder. Octave is installed in the
> computer C drive and U drive is network drive in which my personal files
> are. I can not save anything in the C drive.
> 
> 
> 
> Jaroslav Hajek-2 wrote:
>> On Fri, Jul 3, 2009 at 10:45 AM, agronomist<eero.schroderus at jyu.fi> wrote:
>>> Sorry for simple question, but i'm having troubles to import data to
>>> Ocatave
>>> (version 3.2.0).
>>>
>>> I write
>>>
>>> A = load U:Octave\datafile.dat
>>>
>>> but Octave gives error message. In older versions I think it was possible
>>> to
>>> load data into certain variable with above command?
>>> --
>>>
>> Using result values together with command style call is no longer
>> supported. Use
>> A = load("U:Octave\datafile.dat");
>>
>>

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


More information about the Help-octave mailing list