Let say we have two matrices, i.e. M1
and M2
, of dimensions n1 x m
and n2 x m
, respectively.
How we can find which rows of M1
are identity to those of M2
(and exceptional vice versa) ?
The preferable output is a matrix, whose the number of rows is equal to the identity rows between the matrices M1
and M2
, and two columns, that is, the first column will contain the number of row of matrix M1
and the second one the number of row of matrix M2
.