MATLAB: Equal Cell

MATLAB

Hallo,
how can i use condition "if", if i have two variables type cell? For examlpe:
if(datLab(k)==label(i))
disp(datLab(k));
else
disp('No exist');
end
end
datLab and label are variables cell (string).
Thanks

Best Answer

if strcmp(datLab{k}, label{i})
or
if isequal(datLab{k}, label{i})