필터 지우기
필터 지우기

Exporting specific elements alone from a text file

조회 수: 1 (최근 30일)
Hari
Hari 2016년 4월 22일
댓글: Stephen23 2016년 4월 22일
A text file of mine looks like this. I want to export all the numbers under the 8th (AOI Name), 18th (Fixation start) and 20th (Fixation end) columns. Can anyone suggest me a function that would help in this case with an example if possible?
PS: I think dlmread cannot be used since it expects only numeric data.

답변 (1개)

Stephen23
Stephen23 2016년 4월 22일
If the file has a fixed column-structure, with mixed string and numeric data, then you can use textscan to select particular columns and read them into MATLAB.
  댓글 수: 2
Hari
Hari 2016년 4월 22일
Thank you very much! I'll try how that works!
Stephen23
Stephen23 2016년 4월 22일
If you make a comment and upload your file then I can help you to make it work.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by