Hi. I have a categorical array. I want to find which elements belong to a set of labels. Here is an example of what I would like to write, but I obviously need some form of function here.
data = nominal( {'a', 'b', 'c', 'b', 'a'} )'%This line will in fact not work, so I am looking for a clean way to write it.
isAorB = any(data == {'a', 'b'});disp( isAorB );1101 1
Best Answer