parsing the output from matlab

wang frank fw3 at hotmail.co.jp
Mon Oct 22 12:57:08 EDT 2007


Hi, 
 
I have a big log file generated from matlabe, for each variable, it print the name of the variable and an empty line and then the value. such as:
 
x1 =
 
    0.1
 
y =
 
   7
 
z = 
 
   6.7
 
x1 =
 
   0.5
 
I want to use python to parse the file and selectively print out the vairable and its value. For example, I want to print out all the value related with x1, so the output will be
 
x1 = 0.1
x1 = 0.5.
 
I really do not know how to do it.
 
 
Thanks
 
Frank
_________________________________________________________________
広告表示なし!アカウント有効期限なし!Hotmail Plus のお申し込みはこちら
http://get.live.com/mail/options
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071022/252d105e/attachment.html>


More information about the Python-list mailing list