From: "Jeremy " <>
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$>
References: <iogb44$b5b$> <iogdsp$8hu$>
Reply-To: "Jeremy " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1303327865 25336 (20 Apr 2011 19:31:05 GMT)
NNTP-Posting-Date: Wed, 20 Apr 2011 19:31:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1883796
Xref: 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