Here is some data.
A = {'asdf' 'qwer'};
When I use ==
, I get
>> A == 'asdf'
Undefined operator '==' for input arguments of type 'cell'.
which is expected. A workaround is to do
>> ismember(A, 'asdf')
ans =
1 0
How do you add a method for the cell class so that ==
defaults to calling ismember
in the above fashion?