Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: subtract vector from matrix rows without for loop
Date: Sun, 29 Nov 2009 02:49:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <hesnf0$oog$1@fred.mathworks.com>
References: <hesm3s$3sn$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1259462944 25360 172.30.248.38 (29 Nov 2009 02:49:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 29 Nov 2009 02:49:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1059495
Xref: news.mathworks.com comp.soft-sys.matlab:588577

"Patrick Diviacco" <patrick.diviacco@gmail.com> wrote in message <hesm3s$3sn$1@fred.mathworks.com>...
> hi,
> 
> can I subtract the same vector to each row of a matrix without using a for loop ?
> thanks

yes