checking of existing an string in a cell arrays
500 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mohammad
am 21 Sep. 2011
Kommentiert: Visweswar Bulusu
am 27 Jun. 2020
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
0 Kommentare
Akzeptierte Antwort
Lucas García
am 21 Sep. 2011
if ~any(strcmp(CELL,'a'))
% Do Something
else
% Do Something else
end
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!