I have a 100*100 matrix that I need to save it in a txt or excel file with high precision. This the code I use:
fid = fopen('data.txt', 'w+'); for j = 1:size(s, 2) for i = 1:size(s, 1) fprintf(fid, '%2.20f \n', s(i,j)); end endThe problem in the output, it saves all the values in one line. Any ideas.
Best Answer