How to read tab delimited .txt file line by line (File attached)?
5 ビュー (過去 30 日間)
古いコメントを表示
Hello guys,
I want to read a txt file which has data line by line.
Please find the attached file (Data.txt).
Thanks
0 件のコメント
回答 (1 件)
KSSV
2021 年 10 月 6 日
fid = fopen('Data.txt');
tline = fgetl(fid);
while ischar(tline)
disp(tline)
tline = fgetl(fid);
end
fclose(fid);
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!