Function File: histfit (data, nbins)

Plot histogram with superimposed fitted normal density.

histfit (data, nbins) plots a histogram of the values in the vector data using nbins bars in the histogram. With one input argument, nbins is set to the square root of the number of elements in data.

Example

histfit (randn (100, 1))

See also: bar,hist, pareto.

Package: statistics