What is the fastest way to extract out numbers from text.

1 view (last 30 days)
Lets say i want to extract the numbers(512 & 243) out of these 2 text seperately, which are in a long text file. What functions should i use?
"\Samps/line: 512"
"\Number of lines: 243" . .

Answers (1)

Walter Roberson
Walter Roberson on 17 Dec 2013
Well, no-one knows what the fastest way is. It might turn out to have something to do with Quantum Entanglement, as "spooky action at a distance" is currently considered to be instantaneous, and it would seem to be difficult to beat "infinitely fast" for "fast". But there is thought that quarks might themselves not be elementary particles, and we just don't know how such particles would behave. We also don't really know what happens if you use Quantum Entanglement on Tachyons: Tachyons (if they exist) go faster than the speed of light and so are considered to move backwards in time, going "transfinitely fast", so if two of them got Entangled together, would information between them go faster than light (backwards in time, transfinitely fast) or would it go "instantaneously" and so merely "infinitely fast".
How many exabytes large are your files?

Categories

Find more on Quantum Mechanics in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!