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 日

0 投票

regexp(str,'[^\d_\.]*','match')
or
regexp(str,'[a-zA-Z]*','match')

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Characters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by