Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Minor disappointment with Matlab
Date: Fri, 4 Sep 2009 22:13:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 11
Message-ID: <h7s3de$e66$1@fred.mathworks.com>
References: <25f0b0e8-fa6b-4283-81eb-d3bfebeb4a97@c37g2000yqi.googlegroups.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1252102382 14534 172.30.248.37 (4 Sep 2009 22:13:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 4 Sep 2009 22:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:568479


Dan <dnp037@yahoo.com> wrote in message <25f0b0e8-fa6b-4283-81eb-d3bfebeb4a97@c37g2000yqi.googlegroups.com>...

> 
> I recommend that you carefully consider using "cross" in calculation
> intensive code.

Better still, vectorize the code. Most of Matlab functions has a lot of overhead because its design is not targeted for use within for-loop.

You can check the source code of cross. It is not a *built-in* function, simply a stock mfile.

Bruno