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

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일

0 개 추천

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!

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2023년 2월 15일

편집:

2023년 2월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by