function write_infile( filename,source_matrix )%TEST Summary of this function goes here% write matrix to file
fid=fopen(filename,'a');
[x,y]=size(source_matrix);
for i=1:x
for j=1:y-1
fprintf(fid,'%f\',source_matrix(i,j)); end
fprintf(fid,'%f\\n',source_matrix(i,y));%每⼀⾏回车\\nend
fclose(fid);
end
因篇幅问题不能全部显示,请点此查看更多更全内容