hist
- :
n =hist(y)¶ - :
n =hist(y, nbins)¶ - :
n =hist(y, centers)¶ - :
n =hist(y, x, norm)¶ - :
[n, x] =hist(…)¶ - : hist
(ax, …)¶ Count how many values of y fall into each of a set of bins.
A vector y gives a row vector of counts, a matrix is counted column by column. The bins are given by their centers, or by their number nbins (default 10), in which case they split the range of the data evenly. Edges lie halfway between neighbouring centres, the outer bins are open-ended, and a value on an edge counts for the lower bin. NaN values are ignored. With norm the counts are scaled to sum to that value. Without output arguments a bar chart is drawn.