Extract or import two Specific values form Text file

13 Ansichten (letzte 30 Tage)
Learner
Learner am 24 Jul. 2018
Kommentiert: madhan ravi am 24 Jul. 2018
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.

Akzeptierte Antwort

madhan ravi
madhan ravi am 24 Jul. 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 Kommentare
Learner
Learner am 24 Jul. 2018
Yes, its working thank you very much...
madhan ravi
madhan ravi am 24 Jul. 2018
You are welcome

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Produkte


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by