Read text file and append
5 次查看(过去 30 天)
显示 更早的评论
How do i read a text file from line x to line y, and store in a new text file? Also how can i create a new text pile by appending 3 different text files?
0 个评论
采纳的回答
Image Analyst
2013-8-29
It's a really really easy and straightforward adaption of the answer I gave in http://www.mathworks.com/matlabcentral/answers/85961#answer_95486 and you should have no trouble now doing this yourself. Just have another loop in the beginning where you read and throw away/ignore the first x-1 lines and quit reading when your line counter gets to y. A smart engineer like you should be able to do it in 2 minutes.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!