Hi,
I have two matrices listed below.
A = [ 1 29000 ; 2 30000 ; 3 4200 ];B = [ 1 1 2 2 2 ; 2 1 3 2 2 ; 3 1 4 2 2 ];
I want to wrtie a code that does the following: If column 5 of B equals to any of the number in column 1 of A, then output equals to the corresponding number in column 2 of A. Can anyone help with the coding?
Thanks in advance
Best Answer