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

7 ビュー (過去 30 日間)
Lance
Lance 2023 年 2 月 15 日
編集済み: Mili Goyal 2023 年 2 月 21 日
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 Center および File ExchangeHistograms についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by