Examples
Read and display the file fgetl.m one line at a time:
fid = fopen('fgetl.m');
tline = fgetl(fid);
while ischar(tline)
disp(tline)
tline = fgetl(fid);
end
fclose(fid);
matlab 按行读取TXT文件
最新推荐文章于 2024-02-29 21:45:28 发布