Importing text file
1 次查看(过去 30 天)
显示 更早的评论
I want to import data from a text file that has many headers. For examlple the file would look like:
Frame(1/8139) red green blue 1 5 7 2 5 12
It is very long and each frame has the same header. Is there a way to skip over the lines with letters and only import the data?
1 个评论
回答(1 个)
Walter Roberson
2011-7-27
If you use textscan() and set the CommentStyle to be 'F', then everything from the F to the end of the line will be skipped.
0 个评论
另请参阅
类别
在 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!