The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

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