[Top][All Lists]

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

Re: Reading files in Octave

From: José Luis García Pallero
Subject: Re: Reading files in Octave
Date: Wed, 11 Mar 2009 19:07:37 +0100

Or you can use the function load():

Sl = Cl(:,4);
Cl = Cl(:,3);

2009/3/11 John W. Eaton <address@hidden>
On 11-Mar-2009, Ivan Sutoris wrote:
It would probably be a lot faster to just read all the data at once,
then reshape and rename as needed:

 fid = fopen ("foo.dat");
 tmp = fscanf (fid, "%f").';
 fclose (fid);
 j = tmp(:,1);pppppp
 k = tmp(:,2);
 Cl = ...
 Sl = ...

I'm having trouble understanding exactly how i,j and j,k in your
above example are supposed to be used as indices to Cl and Sl, and
what you expect the final sizes to be, so I'm not sure precisely how
to take the 3rd and 4th columns of TMP and turn it into Cl an Sl.


Help-octave mailing list

José Luis García Pallero
/ / \
Use Debian GNU/Linux and enjoy!

reply via email to

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