« Return to Thread: load data

Re: load data

by Michael Grossbach :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: load data