I got a simple question but I just don't get the solution - so sorry for annoyance!
I have two arrays:
A = [ 2 2 1 3 2 1];
B = [1 3];
I want now a logical array for all numbers with A == 2, but only element number B should be true.
As you can see, the first and third "2" of A is now "true", everything else is false. Is there a simple. loop-avoiding-solution? Thanks!