SOM Toolbox Online documentation


[nos,names] = som_label2num(L)

SOM_LABEL2NUM Recodes textual data labels to interger class labels 



  Input and output arguments ([]'s are optional): 
   L      (map struct, data struct, 
           Nx1 cell array of strings, 
           a Nxn char array)           textual labels
   class  (vector) Nx1 vector of integers where N is the number of original text labels
   names  (cell)   kx1 array of strings where names(i) correspons to integer label i

 See also KNN

[ SOM Toolbox online doc ]