Azzera filtri
Azzera filtri

Exclude Digits from String using Regexp in MATLAB

13 visualizzazioni (ultimi 30 giorni)
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'}

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 27 Ago 2014
Modificato: Andrei Bobrov il 27 Ago 2014
regexp(str,'[^\d_\.]*','match')
or
regexp(str,'[a-zA-Z]*','match')

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by