Exclude Digits from String using Regexp in MATLAB
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Konark Kelaiya
am 27 Aug. 2014
Bearbeitet: Andrei Bobrov
am 27 Aug. 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 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 27 Aug. 2014
Bearbeitet: Andrei Bobrov
am 27 Aug. 2014
regexp(str,'[^\d_\.]*','match')
or
regexp(str,'[a-zA-Z]*','match')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu String Parsing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!