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\t',source_matrix(i,j));
    end
    fprintf(fid,'%f\n',source_matrix(i,y));%每一行回车\n
end


fclose(fid);


end

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-12-02
  • 2021-11-23
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-02-27
  • 2021-05-28
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案