SOM Toolbox Online documentation http://www.cis.hut.fi/projects/somtoolbox/

som_label2num

[nos,names] = som_label2num(L)

SOM_LABEL2NUM Recodes textual data labels to interger class labels 

 [class,names]=class2num(L)

  [class,names]=class2num(sData)
  [class,names]=class2num(sMap)
  [class,names]=class2num(sData.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 ]