Exclude Digits from String using Regexp in MATLAB
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Konark Kelaiya
le 27 Août 2014
Modifié(e) : Andrei Bobrov
le 27 Août 2014
Need to exclude Numbers from String and returns cell arrays of strings in MATLAB
e.g str = 'abc76.5_pol0.00_Ev0.3'
output {'abc','pol','Ev'}
0 commentaires
Réponse acceptée
Andrei Bobrov
le 27 Août 2014
Modifié(e) : Andrei Bobrov
le 27 Août 2014
regexp(str,'[^\d_\.]*','match')
or
regexp(str,'[a-zA-Z]*','match')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!