How to read specific value from a text file?

1 visualizzazione (ultimi 30 giorni)
ayat
ayat il 8 Ago 2016
Risposto: Adam il 8 Ago 2016
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!

Risposta accettata

Adam
Adam il 8 Ago 2016
fscanf( fid, '%f', [1 1] )
will do the job if you just want the first value.

Più risposte (0)

Categorie

Scopri di più su Data Import and Export in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by