N = histc(X, edges)
[N, bin] = histc(X, edges)
N = histc(X, edges, dim)
| Parameter | Description |
|---|---|
| X | Numeric or logical array. |
| edges | Numeric vector of bin edges. |
| dim | Dimension to operate along. |
| Parameter | Description |
|---|---|
| N | Counts for each edge interval. |
| bin | Bin index for each element of X. |
histc counts values in bins defined by edges. Values equal to the last edge are counted in the last bin.
[N, bin] = histc([0 1 1.5 2], [0 1 2])
| Version | Description |
|---|---|
| 2.0.0 | initial version |