Hello, I have two matrices, one is
K=[1 4 2 0 1;1 4 0 0 1;2 4 0 0 1;2 4 3 0 1;5 4 2 0 2];
the other is
L=[1 4 0 0 1; 2 4 0 0 1; 4 2 0 0 2].
I want to do somethings:
- get one row from L in a loop;
- extract the first column and the last column of this row;
- compare the extracted number with the related location in every row of K;
- If the numbers are matched, get the index from K.Can anyone help me how to do that, please?Thanks in advance.
Best Answer