Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to vectorize and avoid this for loop to speed up?
Date: Thu, 26 Jul 2007 03:26:33 +0000 (UTC)
Organization: Boston University
Lines: 3
Message-ID: <f89499$aul$1@fred.mathworks.com>
References: <f86ief$f4n$1@news.Stanford.EDU>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185420393 11221 172.30.248.36 (26 Jul 2007 03:26:33 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Jul 2007 03:26:33 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 844160
Xref: news.mathworks.com comp.soft-sys.matlab:421128



Looks like you oughta do element by element matrix multiplication ... 

.* a couple of n x m matrices together to create another n x m matrix.