Exclude Digits from String using Regexp in MATLAB

4 ビュー (過去 30 日間)
Konark Kelaiya
Konark Kelaiya 2014 年 8 月 27 日
編集済み: Andrei Bobrov 2014 年 8 月 27 日
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'}

採用された回答

Andrei Bobrov
Andrei Bobrov 2014 年 8 月 27 日
編集済み: Andrei Bobrov 2014 年 8 月 27 日
regexp(str,'[^\d_\.]*','match')
or
regexp(str,'[a-zA-Z]*','match')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by