Statistics Toolbox | ![]() ![]() |
Syntax
table = tabulate(x) tabulate(x)
Description
takes a vector of positive integers, table = tabulate(x)
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
![]() | surfht | tblread | ![]() |