- Use "ismember" function to check each element of the array to see if it matches 'B'.
- Use "any" function to check if there is at least one true value in each row of the logical array produced by ismember. This operation should be performed across the second dimension (i.e., columns), meaning it checks each row for any occurrence of true.
- ismember - https://www.mathworks.com/help/matlab/ref/double.ismember.html
- any - https://www.mathworks.com/help/matlab/ref/any.html