Extract or import two Specific values form Text file

I am working on a problem in MATLAB, in which I need to import two specific values (highlighted) from a text file as shown in the figure 1.
And corresponding txt file is attached below.

2 comentarios

Upload your text file.
Learner
Learner el 24 de Jul. de 2018
Text file attached

Iniciar sesión para comentar.

 Respuesta aceptada

madhan ravi
madhan ravi el 24 de Jul. de 2018
Try this:
fid = fopen('M7_soil_FN_1.txt','rt');
C = textscan(fid,'%f%f','HeaderLines',6);
fclose(fid);
C{1}
C{2}

2 comentarios

Learner
Learner el 24 de Jul. de 2018
Yes, its working thank you very much...
You are welcome

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Export en Centro de ayuda y File Exchange.

Productos

Versión

R2015b

Preguntada:

el 24 de Jul. de 2018

Comentada:

el 24 de Jul. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by