Hist vs Histogram (Different output even if same bins and same dataset)
Afficher commentaires plus anciens
Why does hist and histogram output different graphs even if they have the same bins and the same dataset?
Which is considered more accurate?



Réponses (1)
Mili Goyal
le 21 Fév 2023
Modifié(e) : Mili Goyal
le 21 Fév 2023
0 votes
The "hist" function operates with bin centers while "histogram" operates with bin edges. The details of the differences between the two can be found in the following documentation:
The "histogram" function includes various improvements over "hist" and is the new recommended function.
Hope this helps!
Catégories
En savoir plus sur Histograms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!