From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 30% faster for-loop when changing loop variable from default(double) to int
Date: Mon, 14 May 2012 18:44:10 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 5
Message-ID: <jorjpq$266$>
References: <jor8fr$a4n$> <jorekp$86u$> <jori3c$nm3$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1337021050 2246 (14 May 2012 18:44:10 GMT)
NNTP-Posting-Date: Mon, 14 May 2012 18:44:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:767796

I agree with Matt and James. There are many things that can lead to wrong timings and false conclusion. The risk is greatlly reduced by using this FEX tool: