AHIST

버전 1.0.0.0 (3.9 KB) 작성자: Durga Lal Shrestha
Combined good features of hist and histc
다운로드 수: 1.3K
업데이트 날짜: 2016/4/4

라이선스 보기

AHIST Alternative to Histogram.
Motivation: to combine the good features of HIST and HISTC.
USAGE:
n = ahist(Y)
n = ahist(Y,nbin)
n = ahist(Y,xedges)
[n,xc,index] = ahist(...)
ahist(...) without output arguments produces a
histogram bar plot of the results.

INPUT:
Y: Vector or Matrix of data. If Y is Matrix, AHIST works down
the columns.
nbin: Number of bins
xedges: Matrix of edges for each column vector of data

OUTPUT:
n: Number of elements in each container.
xc: The position of the bin centers in X
index: Index matrix BIN.

FEATURES:
1. Returns the index matrix (histc)
2. Either uses nbins (hist) or xedges (histc)
3. Returns centre of the bin (hist)
4. Plot histogram of each column of matrix in subplots

WHY AHIST:
1. Note that in histc, the last bin counts any values of x that
match edges(end). But AHIST(Y) bins the elements of Y into 10 equally
spaced containers like in hist.
2. When working the matrix, HIST and HISTC uses same container based on
the range of the whole matrix for all column of the matrix.
But AHIST uses different container for each column based on the range
of data in each column.

See also HIST HISTC

Copyright 2004-2007 by Durga Lal Shrestha.
eMail: durgals@hotmail.com
$Date: 2007/10/02
$Revision: 1.0.0 $ $Date: 2007/10/02 $

인용 양식

Durga Lal Shrestha (2024). AHIST (https://www.mathworks.com/matlabcentral/fileexchange/16700-ahist), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
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

BSD License