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!