I figured out the answer:
>> [~, idx] = ismember(B, A, 'rows')
In case you want to check that all rows in B where found in A you can do this:
[matches, idx] = ismember(B, A, 'rows')
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!