|MATLAB Function Reference|
n = histc(x,edges)
counts the number of values in vector
x that fall between the elements in the
edges vector (which must contain monotonically nondecreasing values).
n is a
(edges) vector containing these counts.
n(k) counts the value
edges(k) <= x(i) < edges(k+1). The last bin counts any values of
x that match
edges(end). Values outside the values in
edges are not counted. Use
edges to include all non-
histc(x,edges) returns a matrix of column histogram counts. For N-D arrays,
histc(x,edges) operates along the first nonsingleton dimension.
n = histc(x,edges,dim)
operates along the dimension
[n,bin] = histc(...)
also returns an index matrix
x is a vector,
bin is zero for out of range values. If
x is an
N matrix, then
To plot the histogram, use the
Specialized Plotting for related functions
© 1994-2005 The MathWorks, Inc.