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!