Hello, Given a submatrix containing 0 or 1 I need to extract the indexes of all the diagonal submatrices so one of the two diagonals must contains only 1 for each submatrix ... Any help? Thanks in advance Bruno ------------------------------------------------------ Scegli infostrada: ADSL gratis per tutta l?estate e telefoni senza canone Telecom