Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Read specific information from text file
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Reinout

Posts: 1
Registered: 12/12/12
Read specific information from text file
Posted: Dec 12, 2012 8:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 text-field 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!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.