M = mode(A)
M = mode(A, d)
[M, F, C] = mode(...)
| Parameter | Description |
|---|---|
| A | input array. |
| d | dimension to operate along: positive integer scalar. |
| Parameter | Description |
|---|---|
| M | Most frequent values. |
| F | Frequencies of the most frequent values. |
| C | Cell array containing the most frequent values. |
mode returns the most frequent values of A along the selected dimension.
A = [1 2 2; 3 3 4];
[M, F, C] = mode(A)
| Version | Description |
|---|---|
| 2.0.0 | initial version |