Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

2d histogram that identifies bins--missing feature?

$
0
0
Summary: When making a 2d histogram, how do I know which points fall into which bin?

When making a histogram of one dimensional data, the function histc readily reveals which data points fall into which bin via the second output argument. Not so with two dimensional data. The function hist3 can readily generate a 2-d histogram (i.e. a histogram with a 2d lattice of rectangular bins). But it is missing a critical piece of information: which points fall into which bins.

Surely I'm not the only person who wants to do this, but such functionality does not appear to be in anywhere on the file exchange or elsewhere on the web. Have I overlooked something, or do I need to write my own function?

Viewing all articles
Browse latest Browse all 19628

Trending Articles