How can I check if a vector, say A, contains a particular value, and another vector, say B, contains another particular value - in the same row as the value was found in vector A? For example:
Target value in A is 9
Target value in B is 7
A = [1;2;3;9]
B = [8;1;2;7]
How can I check that the combination 9 and 7 exists?