I have two matrices A and B:
A= [8 1; 16 2];B= [8 10; 16 5]
I want to replace any element in B that exist in the 1st column of A, by its corresponding value in the second column of A. The result should be:
C=[1 10; 2 5];
Thanks for help
Best Answer