How to extract only floating numbers from a string
古いコメントを表示
Here is my string "21.5VgDC_0.05000V_VgAC_50M-150M30ms47GV1" How can I extract only the numbers 21.5, 0.05000, 50, 150 30 and 47 from the string. Thanks in advance
1 件のコメント
Jan
2018 年 6 月 20 日
What's about '1e-5', '1D+004', '.1'?
採用された回答
その他の回答 (1 件)
Riadh Essaadali
2023 年 5 月 21 日
0 投票
C = regexp(S,'[-+]?\d+\.?\d*','match');
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!