|CRP Toolbox Reference|
Creates a multi-dimensional histogram.
Descriptionp=histn(x) bins the two-dimensional density of x(i) and x(i+1) into a 10x10 equally spaced matrix and returns it in p (this is similar to hist2). p=histn(x1,x2,...,xN) or p=hist2([x1,x2,...,xN]) bins the N-dimensional density of xi into a 10x10 equally spaced matrix and returns it in p. Since both variants of input the arguments can be combined, the usage of various multi-column vectors is possible; the dimension is the sum of the number of all vectors' columns. p=histn(x,l), where l is a scalars, uses a lag l. p=histn(x,k,l), where k and l are scalars, uses k bins and a lag l. [p,j]=histn(...) returns the N-dimensional matrix p and the two-column vector j containing the N-dimensional density matrix and the bin location for x1,...,xN. histn(...) without any output arguments produces a histogram plot.