Exporting specific elements alone from a text file

2 ビュー (過去 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 Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by