I wrote a text file (on a windows PC). (A is large matrix of size [29909961, 4] elements)
fid=fopen(filename,'w')fprintf(fid,'%5i%5i %17.4E%17.4E\r\n', A);fclose(fid)
but fscanf fails to read it in again. have tried a bit with different options, but no success
fid=fopen(filename,'r')K51=fscanf(fid,'%5i%5i %17.4E%17.4E\r\n');%K51=fscanf(fid,'%5i%5i%20.4E%17.4E%\r%*c%\n%*c');
fclose(fid)
appreciate the help!
Best Answer