MATLAB 读文件

fid=fopen('d:\data.txt','r');
while (~feof(fid))  line=fgetl(fid);
%其他操作
end

你可能感兴趣的:(MATLAB 读文件)