Path: news.mathworks.com!not-for-mail
From: "Paul " <palex71@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matrix / column vector division
Date: Thu, 7 Jul 2011 17:44:11 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <iv4r9b$5h7$1@newscl01ah.mathworks.com>
References: <iv4qf6$2up$1@newscl01ah.mathworks.com> <iv4qs6$49r$1@newscl01ah.mathworks.com>
Reply-To: "Paul " <palex71@hotmail.com>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1310060651 5671 172.30.248.35 (7 Jul 2011 17:44:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Jul 2011 17:44:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2380237
Xref: news.mathworks.com comp.soft-sys.matlab:735409

"Matt J" wrote in message <iv4qs6$49r$1@newscl01ah.mathworks.com>...
> "Paul " <palex71@hotmail.com> wrote in message <iv4qf6$2up$1@newscl01ah.mathworks.com>...
> >
> > I need to divide each column of the matrix by the vector (element by element) to yield
> > 
> > a/e  b/e
> > c/f  d/f
> > 
> > What is the proper syntax?... thanks!
> 
> bsxfun(@rdivide,abcd,ef)

Perfect... thanks!