matlab中fprintf写入txt文件\n没法换行

  解决方法,将‘\n’换成’\r\n’,实现以下:web fp = fopen(save_train_txt,'w+'); %open the txt fprintf(fp,'hello world!\r\nhello china!'); fclose(fp);
相关文章
相关标签/搜索