Statistics Toolbox    
histfit

Histogram with superimposed normal density.

Syntax

Description

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

h = histfit(data,nbins) returns a vector of handles to the plotted lines, where h(1) is the handle to the histogram, h(2) is the handle to the density curve.

Example

See Also
hist, normfit


 hist hougen