checking of existing an string in a cell arrays
516 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
mohammad
il 21 Set 2011
Commentato: Visweswar Bulusu
il 27 Giu 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 Commenti
Risposta accettata
Lucas García
il 21 Set 2011
if ~any(strcmp(CELL,'a'))
% Do Something
else
% Do Something else
end
4 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!