2
Good,
I have a program that runs in loop and I need to save the results of each loop. Within the loop i call several functions and in each function I need to save the results.
I have used in every function something of the kind:
fid = fopen('file.txt','a+');
fprintf(fid,'CoF Inícial: %5.5f \n',mib);
fprintf(fid,'CoF Final: %2.5f \n',min(miBPT));
fclose(fid);
he has saved in the archive file.txt
, but has saved online one piece of information in front of the other which makes it very difficult to read.
the command \n
works only in the environment of Matlab not when saving the file.
How could I save in column format?