The following code worked fine for me.
A=D';
for i = 1:7500
fid = fopen([num2str(i),'.txt'],'w') ;
fprintf(fid,'%f\n',A(i,:)) ;
fclose(fid) ;
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!