histogram
Histogram of data.
Syntax
Section titled “Syntax”h = histogram(x, ...)h = histogram(x, nbins, ...)h = histogram(x, edges, ...)Description
Section titled “Description”Bins the values in x and draws a bar chart of the counts. With an integer nbins, uses that many equal-width bins; with a vector edges, uses those bin boundaries explicitly.
Examples
Section titled “Examples”histogram(randn(1000, 1))histogram(x, 50, 'Normalization', 'pdf')