<< nan_cluster Cluster Analysis nan_kmeans >>

NaN Toolbox >> NaN Toolbox > Cluster Analysis > nan_crosstab

nan_crosstab

Cross-tabulation

Calling Sequence

[table] = nan_crosstab(x1,x2)
[table] = nan_crosstab(x1,x2,x3)
[table] = nan_crosstab(x1,x2,x3,x4)

Description

nan_crosstab return a table which containts the number of equal symbols across all input vectors. The first dimenstion in table counts the symbols in x1, the second dimenstion counts the symbols in x2 and so on...

Examples

x = [1 1 2 3 1]; y = [1 2 5 3 1];
// number of the symbols 1,2,3,4,5 in x and y
table= nan_crosstab(x,y)

Authors


Report an issue
<< nan_cluster Cluster Analysis nan_kmeans >>