Hist vs Histogram (Different output even if same bins and same dataset)
20 次查看(过去 30 天)
显示 更早的评论
Why does hist and histogram output different graphs even if they have the same bins and the same dataset?
Which is considered more accurate?



0 个评论
回答(1 个)
Mili Goyal
2023-2-21
编辑:Mili Goyal
2023-2-21
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!