Let there be two arrays {A,B}
of size 1xN
I want to find the number of cases where on the same indices
the condition A(ii)==1 & B(ii)==0
is satisfied.
I tried
casess= intersect( find(A==1),find(B==0 ))
but this is very slow.
I believe this is because intersect
checks on every member if it is member of the other group, but I am still looking for the fastest solution to my smaller problem.