MATLAB: Undefined function ‘eq’ for input arguments of type ‘cell error

cell arraysfind

txt1=[{'a'},{'b'},{'c'}];
txt1=txt1(:);
data=[{'a'},{'b'}];
data=data(:);
[row,col] = find(txt1==data)
%it gives
Undefined function 'eq' for input arguments of type 'cell'. error.

Best Answer

Replace
txt1==data
by
ismember( txt1, data )
and see documentation of ismember