skipping lines in big file
1 次查看(过去 30 天)
显示 更早的评论
I have a big data and it contains many lines.First of all i want to skip the first two step and then have to read next 153 lines then I have to skip next two lines then I want to read 153 lines and this process should be continued.Please help me.i am not used to with Matlab. And my project deadline is not too far.
0 个评论
回答(1 个)
Walter Roberson
2016-4-12
textscan() with headerlines 2 and a repeat count of 153. And put all that in a loop until you process as much of the file as you want
2 个评论
Walter Roberson
2016-4-12
I will not be at my keyboard for a number of hours. It should be easy to find from the textscan documents. But we would need to know the format of the 153 lines to give a complete solution
另请参阅
类别
在 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!