checking of existing an string in a cell arrays
522 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Lucas García
2011 年 9 月 21 日
if ~any(strcmp(CELL,'a'))
% Do Something
else
% Do Something else
end
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!