hist2 for the people

버전 1.0.0.0 (1.91 KB) 작성자: Nedialko Krouchev
2D histogram: Extract the number of joint events - (x,y) data value pairs
다운로드 수: 3.2K
업데이트 날짜: 2006/9/21

라이선스 없음

2D histogram: Extract the number of joint events - (x,y) data value pairs that fall in each bin of the grid defined by xedges and yedges.

Uses:

[N,BIN] = HISTD(X,EDGES)

which returns

1) N is a LENGTH(EDGES) vector, 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).

2) an index matrix BIN. If X is a vector, N(K) = SUM(BIN==K). BIN is zero for out of range values. If X is an m-by-n matrix, then, for j=1:n, N(K,j) = SUM(BIN(:,j)==K); end

Please, see the notes to HISTD too.

N.B. It is always a better idea to use the HISTC MEX (a much faster compiled C code) if you have it, then just replace the HISTD with HISTC in all calls contained in the hist2() .m function

Small print Note: There is a similar f/n - hist3 - in the R14 stats, but on top of everything else that makes it inaccessible, it looks looong

인용 양식

Nedialko Krouchev (2024). hist2 for the people (https://www.mathworks.com/matlabcentral/fileexchange/12346-hist2-for-the-people), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R10
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0