Path: news.mathworks.com!not-for-mail
From: "Jeremy " <jeremy.brower@asu.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: dynamic binning?
Date: Wed, 20 Apr 2011 19:31:05 +0000 (UTC)
Organization: Arizona State University
Lines: 6
Message-ID: <ionc9p$ono$1@fred.mathworks.com>
References: <iogb44$b5b$1@fred.mathworks.com> <iogdsp$8hu$1@fred.mathworks.com>
Reply-To: "Jeremy " <jeremy.brower@asu.edu>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1303327865 25336 172.30.248.46 (20 Apr 2011 19:31:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Apr 2011 19:31:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1883796
Xref: news.mathworks.com comp.soft-sys.matlab:722992

Thanks for the input Roger. I've got it all implemented and working pretty close to how I originally had it working in my mind.


>   It should be relatively easy to devise some function that allows you to create smoothly varying bin widths.  Their accumulated values give the 'edges' data needed for applying 'histc' to your x-dimension data.  The result would be bin counts and bin indices.  From this you can perform the "summing" on y values you need (though I suspect you really want mean values rather than sums.)  (I can foresee the need for 'accumarray' here.)  If you say that with uniform bin widths this is "straightforward", then with varying bin widths this should be equally so.
> 
> Roger Stafford