Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Reinout
Posts:
1
Registered:
12/12/12


Read specific information from text file
Posted:
Dec 12, 2012 8:36 AM


Hello,
I am quite new at using Matlab for processing my information. I have a big log text file, which looks something like this:
intervals [1]: xmin = 0 xmax = 2.1453569439253695 text = " " intervals [2]: xmin = 2.1453569439253695 xmax = 2.310303060291739 text = "Ze" intervals [3]: xmin = 2.310303060291739 xmax = 2.5806518697791527 text = "komen" intervals [4]: xmin = 2.5806518697791527 xmax = 2.7993886338189697 text = "thuis" intervals [5]: xmin = 2.7993886338189697 xmax = 2.8878664260148503 text = "met"
For every interval, I want to store xmin, xmax and text. But the textfield has to come without the quotes, but it can containt quotes within these quotes (for example text = ""ik", needs to save ik and " " or "" needs to save an empty cell, because there was no text input at that moment).
I would like a 3 by intervals matrix, with xmin, xmax and text in the columns, but how can I do this with Matlab? Especially discarding the quotes, but still saving an empty cell seems to be difficult.
Thanks for guidance in advance!



