Hello, I need to save a .txt file with data of a matrix M like
1 1 -52.56 -92.20 28.941 2 -22.57 -92.19 28.012 1 -39.96 -92.20 44.762 2 -12.22 -92.08 33.333 1 -22.83 -92.20 55.493 2 -0.66 -92.03 35.27
I use this script
fid = fopen('curve_back.txt','wt');fprintf(fid,'%0.0f %0.0f %0.2f %0.2f %0.2f\n',M');fclose(fid);
but I'd like to save numbers with comma separator instead of point symbol. Any hint? Thanks.
Best Answer