Histograms

imhist(M, n) Returns an n-bin histogram of M for values between 0 and 255 (ignores values outside that range).

imhist2(M, n) Returns an n-bin histogram of M over its range of values.

hist2d(M, N, n) Returns a two-dimensional histogram with n bins on equal-sized matrices M and N.

Arguments: