Borrar filtros
Borrar filtros

How to read specific value from a text file?

1 visualización (últimos 30 días)
ayat
ayat el 8 de Ag. de 2016
Respondida: Adam el 8 de Ag. de 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!

Respuesta aceptada

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

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by