How to remove some lines of a file?
Show older comments
I have a File of 8.760 lines. I'll use just the first 744 lines. How can I delete the others?
2 Comments
Bob Thompson
on 19 Feb 2018
What type of file is it? What type of data does it contain?
The general method I would suggest would be to read the file into matlab somehow, and then remove the data you don't need before reprinting the truncated file.
Bruno Souza
on 20 Feb 2018
Accepted Answer
More Answers (0)
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!