Efficient way of extracting parameters from a text file without external utilities
Show older comments
I have a txt file whose content is as follows (There are around 1000,000 rows).

Basically there are 4 parameters, each of which can take non-negative integer values:
- type 0,val1
- type 0,val2
- type 1,val1
- type 1,val2
I need to extract their values and form 4 arrays one for each parameters. . How can I do this in a time efficient way?
1 Comment
Walter Roberson
on 9 Jul 2019
This belongs as part of https://www.mathworks.com/matlabcentral/answers/470798-fastest-way-to-create-arrays-programmatically-for-particular-parameter-values-from-a-set-of-text-fi
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings 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!