MATLAB: Using ismember on vector with strings

ismemberstringvectors

Hi,
I am wonderinh whether I can write something like this:
If any(ismember(result , [" nafor", "kform", "acet"]))

Best Answer

if you are trying to match string to string, try this:
if any(contains([' nafor','kform','acet'],result))