getInd function

get index list from editmatrix