Convert label matrix to vector

label_mat2vec(z)

Arguments

z

a label vector with elements as integers from 1 to K