Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Function without loop
Date: Thu, 29 Jan 2009 05:12:01 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 6
Message-ID: <glrdr1$uv$1@fred.mathworks.com>
References: <3e334842-e716-484b-bba8-8aca2de0b028@a12g2000pro.googlegroups.com> <d9333ce0-d611-4d7d-84b1-a12452141f51@o40g2000prn.googlegroups.com>
Reply-To: <HIDDEN>
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 1233205921 991 172.30.248.38 (29 Jan 2009 05:12:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Jan 2009 05:12:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:514630


Simply pre-allocating f before the loop cuts run time in half.




)zf;5okdzdozpic\\`\zp^t\`hhojcjgz@z"`jTkc"]z^qz\`b\gj\j]Hji