Hist vs Histogram (Different output even if same bins and same dataset)
7 ビュー (過去 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1296065/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1296070/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1296075/image.jpeg)
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!