| Statistics Toolbox | Search  Help Desk |
| tabulate | Examples See Also |
Syntax
table = tabulate(x) tabulate(x)
Description
table = tabulate(x) takes a vector of positive integers, x, and returns a matrix, table.
The first column of table contains the values of x. The second contains the number of instances of this value. The last column contains the percentage of each value.
tabulate with no output arguments displays a formatted table in the command window.
Example
tabulate([1 2 4 4 3 4])
Value Count Percent
1 1 16.67%
2 1 16.67%
3 1 16.67%
4 3 50.00%
See Also
pareto