Path: news.mathworks.com!not-for-mail
From: "Zahra" <zahra.yamani@nrc.gc.ca>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to read and write a portion of a file
Date: Tue, 18 Nov 2008 13:40:17 +0000 (UTC)
Organization: National Research Council of Canada
Lines: 10
Message-ID: <gfugk1$9qf$1@fred.mathworks.com>
References: <gfcj8m$ksi$1@fred.mathworks.com> <gfo3f5$a94$1@fred.mathworks.com> <gfpq4i$mte$1@fred.mathworks.com> <gfsu3a$slj$1@fred.mathworks.com> <gfu1p5$4b0$1@fred.mathworks.com>
Reply-To: "Zahra" <zahra.yamani@nrc.gc.ca>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227015617 10063 172.30.248.38 (18 Nov 2008 13:40:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Nov 2008 13:40:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1060562
Xref: news.mathworks.com comp.soft-sys.matlab:501409


Hi Andres,

Thanks very much for your reply. Wow, your code is super fast, for the same data file here are the times:
1. for my original code with the for loop: 48 sec
2. for my second code based on string search and readline.m: 7 sec
3. for your code: 0.1 sec

Your code will speed up my data analysis by a lot. Thanks again for all your help.
Best regards,
Zahra