Delete letters in a string variable
古いコメントを表示
Hi,
for instance, string variables are '2456.00A', '2501A',...
How can I delete letters in a string variable?
Thanks in advance.
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2013 年 5 月 31 日
編集済み: Azzi Abdelmalek
2013 年 5 月 31 日
s={'2456.00A', '2501A'};
out=cellfun(@(x) x(regexp(x,'[^a-zA-Z]')),s,'un',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!