How to read tab delimited .txt file line by line (File attached)?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello guys,
I want to read a txt file which has data line by line.
Please find the attached file (Data.txt).
Thanks
0 Kommentare
Antworten (1)
KSSV
am 6 Okt. 2021
fid = fopen('Data.txt');
tline = fgetl(fid);
while ischar(tline)
disp(tline)
tline = fgetl(fid);
end
fclose(fid);
3 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!