Is there a way to search strings in a cell array similar to numeric arrays?
a = [1 2 3 4 5 6]; >> idx = find(a==3) idx = 3 >> b = {'1' '2' '3' '4' '5' '6'}; >> idx = find(b=='3') Undefined function 'eq' for input arguments of type 'cell'.
Best Answer