Path: news.mathworks.com!not-for-mail
From: "Paul " <palex71@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Matrix / column vector division
Date: Thu, 7 Jul 2011 17:30:14 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <iv4qf6$2up$1@newscl01ah.mathworks.com>
Reply-To: "Paul " <palex71@hotmail.com>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1310059814 3033 172.30.248.37 (7 Jul 2011 17:30:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Jul 2011 17:30:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2380237
Xref: news.mathworks.com comp.soft-sys.matlab:735402

I'm sure this is routine, but if I have a matrix

a b
c d

and a column vector:

e
f

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!