A = [1 2 3 4 6 7 8 9 15; 10 11 12 13 14 15 16 17 18; 17 18 19 20 21 22 23 24 19; 10 11 12 13 14 15 16 24 18]
A =
1 2 3 4 6 7 8 9 15 10 11 12 13 14 15 16 17 18 17 18 19 20 21 22 23 24 19 10 11 12 13 14 15 16 24 18
B = [9 1; 17 1; 24 2; 15 1; 18 2; 19 1]
B =
9 1 17 1 24 2 15 1 18 2 19 1
Now the conditions are:
If Column 8 Row (1-3) and Column 9 Row (1-3) of Matrix A = 1 and 1 [see Column 2 Row (1-6) for corresponding Column 1 Row (1-6)], then copy entire corresponding row of Matrix A to a new Matrix C.
If Column 8 Row (1-3) and Column 9 Row (1-3) of Matrix A = (1 and 2) or (2 and 1) [see Column 2 Row (1-6) for corresponding Column 1 Row (1-6)], then copy entire corresponding row of Matrix A to a new Matrix D.
If Column 8 Row (1-3) and Column 9 Row (1-3) of Matrix A = 2 and 2 [see Column 2 Row (1-6) for corresponding Column 1 Row (1-6)], then copy entire corresponding row of Matrix A to a new Matrix E.
Best Answer