matlab 逐行从文件读入

来源:互联网 发布:md5算法原理 编辑:程序博客网 时间:2024/06/11 09:35
while 1
nextline = fgetl(fid_test_groundtruth); %read a line
   if ~ischar(nextline)
      break;
   else
      line_number = line_number + 1;
  end  
end