Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Avoid for loop with floor function
Date: Tue, 8 Nov 2011 07:23:10 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 8
Message-ID: <j9alcu$30l$1@newscl01ah.mathworks.com>
References: <j98toa$50u$1@newscl01ah.mathworks.com> <j99jhr$nkq$1@newscl01ah.mathworks.com> <j9akui$1jb$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
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 1320736990 3093 172.30.248.35 (8 Nov 2011 07:23:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 8 Nov 2011 07:23:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:748621

"Per" wrote in message <j9akui$1jb$1@newscl01ah.mathworks.com>...

> 
> I have considered using histc, but I need to process the values inside each bin, not only count the number of values. I don't think this can be done with histc.

I could. Usually it can be done by HISTC followed by ACCUMARRAY.

Bruno