HISTCND is similar to HISTC, but creates a histogram with any number of dimensions.
N = HISTCND(X,Y,Z,... XEDGES,YEDGES,ZEDGES,... )
where N is a histogram count with dimensions
length(XEDGES) x length(YEDGES) x length(ZEDGES) ...
If XEDGES, YEDGES, etc. are monotonically increasing and non-NaN, a data point is assigned to bin N(i,j,k,...) if
XEDGES(i) <= X < XEDGES(i+1)
YEDGES(j) <= Y < YEDGES(j+1)
ZEDGES(k) <= Z < ZEDGES(k+1)
Note: data outside the ranges of the EDGES vectors are excluded from the histogram, and not placed in the first or last bins.