필터 지우기
필터 지우기

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.

채택된 답변

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 CenterFile Exchange에서 Data 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