Path: news.mathworks.com!not-for-mail
From: "edward kabanyas" <djuky_hmi@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Problem regarding data analysis containing string in the file
Date: Tue, 12 Feb 2008 16:02:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <fosftq$82p$1@fred.mathworks.com>
References: <f9kp2f$ck1$1@fred.mathworks.com> <f9mkll$3hr$1@fred.mathworks.com>
Reply-To: "edward kabanyas" <djuky_hmi@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202832122 8281 172.30.248.35 (12 Feb 2008 16:02:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 12 Feb 2008 16:02:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1278033
Xref: news.mathworks.com comp.soft-sys.matlab:450852


Dear All, 
I have problem in reading file containing string or
character in my file. The following are the data example:

11:48:00 -> 11:49:00   0.00 -> 0.25 mm  n=   0.0000000 /m3mm 
11:48:00 -> 11:49:00   0.25 -> 0.50 mm  n=   0.0000000 /m3mm 
11:48:00 -> 11:49:00   0.50 -> 0.75 mm  n=   0.0000000 /m3mm 
11:48:00 -> 11:49:00   0.75 -> 1.00 mm  n=   1.8491934 /m3mm 
rainrate =0.001686 mm/hr 
11:49:00 -> 11:50:00   0.00 -> 0.25 mm  n=   0.0000000 /m3mm 
11:49:00 -> 11:50:00   0.25 -> 0.50 mm  n=   0.0000000 /m3mm 
11:49:00 -> 11:50:00   0.50 -> 0.75 mm  n=   2.6686186 /m3mm 
11:49:00 -> 11:50:00   0.75 -> 1.00 mm  n=   0.0000000 /m3mm 
rainrate =0.000455 mm/hr 
11:50:00 -> 11:51:00   0.00 -> 0.25 mm  n=   0.0000000 /m3mm 
11:50:00 -> 11:51:00   0.25 -> 0.50 mm  n=   0.0000000 /m3mm 
11:50:00 -> 11:51:00   0.50 -> 0.75 mm  n=   2.3139154 /m3mm 
11:50:00 -> 11:51:00   0.75 -> 1.00 mm  n=   3.5420286 /m3mm 
rainrate =0.004181 mm/hr 

Desired new file structure:
11:48:00 0.0000000 0.0000000 0.0000000 1.8491934 0.001686
11:49:00 0.0000000 0.0000000 2.6686186 0.0000000 0.000455
11:50:00 0.0000000 0.0000000 2.3139154 3.5420286 0.004181

I really need your help. I want to pick the value of last
coulumn (value of after n), rainrate value and time only and
putting them in new file with structure as desired new file.

That's my question, thanks very much for your best help

Best regards;
Edward