Normalized histogram

Same as histogram, but the area sum is 1.
14,3K téléchargements
Mise à jour 22 mars 2013

Afficher la licence

HISTNORM Histogram normalized
[...] = HISTNORM(...) works like HIST, but the frequency is normalized so that area sum is 1.

Bonus usage!
[...] = HISTNORM(..., 'plot') plots and returns the output arguments. Be sure 'plot' is the last argument.

Example:
data = randn(1)+randn(1)*randn (10000, 1);
[xo,no] = histnorm(data, 101, 'plot');
hold on
plot (no, normpdf(no, mean(data), std(data)), 'r');
hold off

See also: HIST.

Copyright 2009 DWTFYW.

Citation pour cette source

Arturo Serrano (2026). Normalized histogram (https://fr.mathworks.com/matlabcentral/fileexchange/22802-normalized-histogram), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2008b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Histograms dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.1.0.0

Updated the example.

1.0.0.0