Hist vs Histogram (Different output even if same bins and same dataset)

6 次查看(过去 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?

回答(1 个)

Mili Goyal
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!

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by