Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!d4g2000yqa.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: HOWTO: Accelerate processing algorithm
Date: Sun, 5 Jul 2009 08:48:19 -0700 (PDT)
Organization: http://groups.google.com
Lines: 15
Message-ID: <1e37765c-af3c-49d8-8465-8203f0c78f19@d4g2000yqa.googlegroups.com>
References: <14646834.75779.1246802812202.JavaMail.jakarta@nitrogen.mathforum.org> 
	<h2qd3u$md0$1@fred.mathworks.com>
NNTP-Posting-Host: 77.17.17.201
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1246808899 12384 127.0.0.1 (5 Jul 2009 15:48:19 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 5 Jul 2009 15:48:19 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: d4g2000yqa.googlegroups.com; posting-host=77.17.17.201; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
	Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:552892


On 5 Jul, 16:25, "Bruno Luong" <b.lu...@fogale.findmycountry> wrote:

> yp1 = y(:)+1;
> S = accumarray(yp1,v(:))./accumarray(yp1,1);
>
> accumarray likes to work with 'sum'. Just a though

I tried to figure out what ACCUMARRAY does, but let's
say the documentation leaves more questions than it
answers.

Exactly what does the lines above do? In as plain English
as possible, please.

Rune