您的位置:首页 > 编程语言 > MATLAB

matlab 文件处理函数总结积累

2016-08-28 21:52 381 查看
1. fgetl(fp)  returns the next  line of the specified file,removing the newline characters . 如果 return value  contains only the end-of-file marker ,the value is -1

        fid = fopen(logName, 'r');   
        fid_accuracy = fopen('output_accuracy.txt', 'w');
        fid_loss = fopen('output_loss.txt', 'w');

tline = fgetl(fid);

         整行读取文件。

2.disp(tline)  显示内容
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  matlab