2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000
2000 2000 2000 0 0 0 0 0 0 4 0 0 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 4 3 3 0 3 3 2000 2000
2000 2000 2000 0 4 4 9 44 31 4 0 0 2000 2000
2000 2000 2000 0 4 0 31 277 531 29 0 0 2000 2000
2000 2000 2000 0 0 4 7 0 3 10 0 3 2000 2000
2000 2000 2000 0 0 4 3 0 0 5 0 1 2000 2000
2000 2000 2000 0 0 0 0 0 0 3 1 1 2000 2000
2000 2000 2000 0 0 0 0 3 1 2 1 1 2000 2000
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 4 0 4 0 0 0 2000 2000
2000 2000 2000 0 0 5 27 21 6 0 3 3 2000 2000
2000 2000 2000 0 3 31 274 316 25 1 1 1 2000 2000
2000 2000 2000 0 0 4 5 4 6 0 0 0 2000 2000
2000 2000 2000 0 0 0 0 0 1 0 0 0 2000 2000
2000 2000 2000 0 0 0 0 0 1 0 0 0 2000 2000
2000 2000 2000 0 0 0 1 0 0 0 0 0 2000 2000
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 0 3 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 4 0 3 0 0 0 2000 2000
2000 2000 2000 0 0 3 3 64 6 0 3 0 2000 2000
2000 2000 2000 0 0 3 473 374 30 9 1 0 2000 2000
2000 2000 2000 0 4 3 4 2 10 3 2 0 2000 2000
2000 2000 2000 0 0 0 0 0 0 1 1 0 2000 2000
2000 2000 2000 0 0 0 0 0 0 1 1 0 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 2 1 2000 2000
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 0 0 0 0 0 0 2000 2000
2000 2000 2000 0 0 0 3 0 3 0 0 0 2000 2000
2000 2000 2000 0 0 4 18 34 9 0 0 0 2000 2000
2000 2000 2000 0 0 6 251 344 17 2 0 0 2000 2000
2000 2000 2000 0 0 8 2 3 5 0 3 0 2000 2000
2000 2000 2000 0 0 0 0 0 4 0 2 0 2000 2000
2000 2000 2000 0 0 0 0 0 1 0 0 0 2000 2000
2000 2000 2000 0 0 0 0 0 1 0 0 0 2000 2000
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000
上面是我目前在 MatLab 中生成的表格,但是当我尝试保存它时,当我需要保持这种格式时,它只是将它粘在一个长字符串中。我也需要它们以这种格式用逗号分隔。
这是我试图用来保存它的代码片段。
new_fname = ['star_chip' '_' date '.txt'];
path1 = '\\pfile01thn\bbruffey$\My Documents\IDLtoMatlab\star_chips\';
fid = fopen([path1 new_fname], 'w');
fprintf(fid,'%d',star_block);
fclose(fid);