histfit(data)
histfit(data, nbins)
histfit(data, nbins, dist)
histfit(ax, ...)
h = histfit(...)
histfit displays a histogram and overlays a fitted probability density curve scaled to the histogram counts.
The default distribution is normal. Supported distribution names include normal, kernel, exponential, gamma, beta, extreme value, half normal, lognormal, logistic, loglogistic, rayleigh, and weibull.
x = randn(100, 1);
histfit(x, 12)
| Version | Description |
|---|---|
| 2.0.0 | initial version |