To compare them while ignoring case, use the strcmpi function. Get s1 = {'Tinker', 'Tailor'; ' Soldier', 'Spy'}; s2 = {'Tinker', 'Baker'; 'Soldier', 'SPY'}; tf = strcmpi(s1,s2) tf = 2x2 logical array 1 0 0 1 tf(1,1) is 1 because 'Tinker' is in the first cell...
Althoughstrcmpishares a name with a C function, it does not follow the C language convention of returning0when the text inputs match. Extended Capabilities Tall Arrays Calculate with arrays that have more rows than fit in memory. C/C++ Code Generation ...