histfit
Plot histogram with superimposed fitted normal density.
histfit (x, nbins)
plots a histogram of the values in
the vector x using nbins bars in the histogram. With one input
argument, nbins is set to the square root of the number of elements in
x.
h = histfit (x, nbins)
returns the bins and fitted
line handles of the plot in h.
Example
histfit (randn (100, 1)) |
See also: bar, hist, pareto
Source Code: histfit
histfit (randn (100, 1)) |