フィルターのクリア

Extract or import two Specific values form Text file

1 回表示 (過去 30 日間)
Learner
Learner 2018 年 7 月 24 日
コメント済み: madhan ravi 2018 年 7 月 24 日
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 件のコメント
madhan ravi
madhan ravi 2018 年 7 月 24 日
Upload your text file.
Learner
Learner 2018 年 7 月 24 日
Text file attached

サインインしてコメントする。

採用された回答

madhan ravi
madhan ravi 2018 年 7 月 24 日
Try this:
fid = fopen('M7_soil_FN_1.txt','rt');
C = textscan(fid,'%f%f','HeaderLines',6);
fclose(fid);
C{1}
C{2}
  2 件のコメント
Learner
Learner 2018 年 7 月 24 日
Yes, its working thank you very much...
madhan ravi
madhan ravi 2018 年 7 月 24 日
You are welcome

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by