Histogram
hist(intvls, data)—Returns a histogram of data, or a vector representing the frequencies with which values in data fall into the intervals represented by intvls.
histogram(intvls, data)—Returns a matrix with two columns. The first column contains midpoints of the intvls of the range min(data) ≤ value ≤ max(data) of equal length. It is useful for plotting a horizontal axis for your histogram. The second column is identical to hist(intvls, data).
Arguments
intvls is either:
A vector of real interval endpoints in ascending order, such that the ith element of the returned vector is the number of points of data falling between the ith and (i + 1)th element of intvls.
An integer greater than zero indicating the number of subintervals of equal length.
data is a vector of real data values.
Was this helpful?