Unfortunately, due to very large size of "ABC.txt" file, it could not be uploaded. However following the hints of both the commentors. I simply used readmatrix() to extract all the numeric data. The extraction is much efficient.
A = readmatrix('ABC.txt')
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/461628-effective-way-to-extract-rows-range-from-a-text-file#comment_704365
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/461628-effective-way-to-extract-rows-range-from-a-text-file#comment_704365
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/461628-effective-way-to-extract-rows-range-from-a-text-file#comment_705332
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/461628-effective-way-to-extract-rows-range-from-a-text-file#comment_705332
Sign in to comment.