필터 지우기
필터 지우기

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

조회 수: 9 (최근 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 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