Regular Expressions using regexp
1 回表示 (過去 30 日間)
古いコメントを表示
I have a cell array of strings a = {'-2.4,-3';'2,3';'0,5';'-4,-2.5';'A';'V';'C'}
Now I want to list those strings which have a "comma".
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 10 月 12 日
編集済み: Azzi Abdelmalek
2013 年 10 月 12 日
a={'-2.4,-3';'2,3';'0,5';'-4,-2.5';'A';'V';'C'}
out=a(cellfun(@(x) ~isempty(strfind(x,',')),a))
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!