I have a question to ask your help. I want to compare matrix A and B to derive the result {{1,2,3},{3,4,10},{5,7,9},{3,3,8}}. That is, I compare the last column of the two matrices to decide which row should be selected. For example, 3>2.5, so I choose {1,2,3}. I tried realize the result with MapThread and MaximalBy, but failed. Could you please tell me how to realize it? Thank you very much!
If the last terms are the same and you want the row to come from A, change to >= , because with only > and the last terms are the same, the row will come from B.