Regular Expressions using regexp
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Priya
il 12 Ott 2013
Risposto: Walter Roberson
il 13 Ott 2013
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 Commenti
Risposta accettata
Azzi Abdelmalek
il 12 Ott 2013
Modificato: Azzi Abdelmalek
il 12 Ott 2013
a={'-2.4,-3';'2,3';'0,5';'-4,-2.5';'A';'V';'C'}
out=a(cellfun(@(x) ~isempty(strfind(x,',')),a))
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Audio and Video Data 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!