| SOM Toolbox | Online documentation | http://www.cis.hut.fi/projects/somtoolbox/ |
cind = som_ind2cod(msize,ind)
SOM_IND2COD SOM_PAK style linear indeces from Matlab linear index.
Cind = som_ind2cod(msize,inds)
cind = som_ind2cod([10 15],44);
cind = som_ind2cod(sMap,44);
cind = som_ind2cod(sMap.msize,44);
Cind = som_ind2cod([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
ind (vector) size n x 1, linear indeces of n map units
cind (matrix) size n x 1, SOM_PAK style linear indeces
(row first, then column)
See also SOM_COD2IND.