Path: news.mathworks.com!not-for-mail
From: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matrix multiplication
Date: Mon, 6 Sep 2010 14:28:05 +0000 (UTC)
Organization: Ricardo UK Ltd
Lines: 10
Message-ID: <i62tpl$jou$1@fred.mathworks.com>
References: <i62r75$4ge$1@fred.mathworks.com> <i62t7e$dji$1@fred.mathworks.com>
Reply-To: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1283783285 20254 172.30.248.38 (6 Sep 2010 14:28:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Sep 2010 14:28:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 43398
Xref: news.mathworks.com comp.soft-sys.matlab:667929

"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <i62t7e$dji$1@fred.mathworks.com>...
> bsxfun(@times, A,B)

Or in old money:

A.*repmat(B,3,1)

Or in ancient money:

A.*B(ones(1,3),:)