tabul - frequency of values of a matrix or vector

### Sequence d'appel

  `[m]=tabul(x)`

### Parametres

- `x` : real or complex vector or matrix

### Description

This function computes the frequency of values of the components of a numerical o chain of characters vector or matrix `x`.

If `x` is a numerical vector or matrix, `m` is a two column matrix who contains in the first column the values of `x` sorted in descending order and in the other column there is the number of occurrences of the corresponding value in `x`.

If `x` is composed of chains of characters, `m` is a list whose first member is a string vector composed with the values of `x` and the second member is a vector whose components are the number of occurrences of each value in `x`.

### Exemples

    x=[2 8 0 3 7 6 8 7 9 1 6 7 7 2 5 2 2 2 9 7]
    m=tabul(x)

### Auteur

Carlos Klimann

### Bibliographie

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.