How to read specific value from a text file?

조회 수: 1 (최근 30일)
ayat
ayat 2016년 8월 8일
답변: Adam 2016년 8월 8일
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!

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by