Regular Expressions using regexp
Mostra commenti meno recenti
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".
Risposta accettata
Più risposte (1)
Walter Roberson
il 13 Ott 2013
regexp(a, '.*,.*', 'match')
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!