Convert label matrix to vector
label_mat2vec(Z)
Z
a cluster assignment matrix
A label vector that follows the assignment matrix