2009/3/11 John W. Eaton
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.
jwe