I tried as below, and I expected it will give me:
//+Point(10) = {0.77258 0.54961 0.56139 0.67184};
However, it gives me:
//+\nPoint(10) = {0.77258 0.54961 0.56139 0.67184};
And the code I wrote is:
for i_file = 1:10 point = rand(1,4); fid = fopen('structure_test','wt'); fprintf(fid,'%s\n%s',['//+\nPoint(',num2str(i_file),') = {',num2str(point),'};']); fid = fclose(fid);end
Best Answer