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

som_ind2sub

Subs = som_ind2sub(msize,inds)

SOM_IND2SUB Map grid subscripts from linear index.

 Subs = som_ind2sub(msize,inds)

  sub = som_ind2sub([10 15],44);
  sub = som_ind2sub(sMap,44);
  sub = som_ind2sub(sMap.msize,44);
  Subs = som_ind2sub([10 15],[44 13 91]');

  Input and output arguments: 
   msize  (struct) map or topology struct
          (vector) size 1 x m, specifies the map grid size
   inds   (vector) size n x 1, linear indeces of n map units
 
   Subs   (matrix) size n x m, the subscripts

 See also SOM_SUB2IND.



[ SOM Toolbox online doc ]