MATLAB: Checking of existing an string in a cell arrays

arrayscellexiststring

There is a cell in name of 'CELL'. it is 1*12000 . its needed to check being and existing of a specified string in arrays of 'CELL'. so if the string doesn't exist do something
for example:
CELL={'a','b','c','d',...};
if 'a' not exists in CELL
do something
end

Best Answer

if ~any(strcmp(CELL,'a'))
% Do Something
else
% Do Something else
end