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文件
最新推荐文章于 2023-05-17 12:50:34 发布