Hi,
I would like to compute the a bivariate histogram by specifying the bin boundaries rather than centers. I've beed doing this with the hist3 function by specifying bin edges. I am wounding why the output of hist3 is size length(edges{1}) x length(edges{2}) rather than length(edges{1})-1 x length(edges{2})-1. Typically x number of specified bin boundaries give x-1 number of bins. Can anyone clarify this to me?

답변 (1개)

Jan
Jan 2013년 9월 27일

0 개 추천

See e.g. the help text of histc:
N(k) will count the value X(i) if EDGES(k) <= X(i) < EDGES(k+1). The
last bin will count any values of X that match EDGES(end).
Therefore you get k results for k-1 intervals.

카테고리

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

태그

질문:

2013년 9월 26일

답변:

Jan
2013년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by