Exporting specific elements alone from a text file
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!