2D/3D matrice to non nul integer


    Jan 30 2016 | 12:30 pm
    hi
    does anyone know an object whose can convert 2D/3D matrice to integer ? My goal is to returns the position of non-null item of a matrix. like the index for a radio mode matrice. Examples: on a 5x5 matrice: 5 1 1 = the 5 case (column) on row 1 is turn on (1) == 5 5 2 1 = the 5 case (column) on row 2 is turn on (1) == 10 5 4 1 = the 5 case (column) on row 4 is turn on (1) == 20
    or if you have an idea how to start that 'code'. maybe is more useful to first turn it to a vector !? like : 5 1 1 = 0 0 0 0 1 and try something with non nul !? (like the first of function from Lemur app.)
    thanks for your help
    best o-o