Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news1.google.com!news.glorb.com!news2.glorb.com!tr22g12.aset.psu.edu!news.mathforum.org!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: HOWTO: Accelerate processing algorithm
Date: Sun, 05 Jul 2009 10:06:21 EDT
Organization: The Math Forum
Lines: 3
Message-ID: <14646834.75779.1246802812202.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1246802812 27735 144.118.30.135 (5 Jul 2009 14:06:52 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Sun, 5 Jul 2009 14:06:52 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:552887


Ok, I think this makes it

S = accumarray(y(:)+1,v(:), [], @mean)