How to read specific value from a text file?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have a text file that is neatly divided into two columns separated by tab. I can read each column fine, but I want to read the first value on the first column and keep it for later processing. You can see the text file attached and thanks in advance for your help!
0 Kommentare
Akzeptierte Antwort
Adam
am 8 Aug. 2016
fscanf( fid, '%f', [1 1] )
will do the job if you just want the first value.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Export 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!