Exclude Digits from String using Regexp in MATLAB
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Andrei Bobrov
2014 年 8 月 27 日
編集済み: Andrei Bobrov
2014 年 8 月 27 日
regexp(str,'[^\d_\.]*','match')
or
regexp(str,'[a-zA-Z]*','match')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!