How can extract specific numbers from a string???
古いコメントを表示
I have the string c={ 4 of 5 stars, 5 of 5 stars, 5 of 5 stars, 3 of 5 stars, 3 of 5 stars, 4 of 5 stars}. How can extract to a matrix the bold numbers ????
thank you!!!
採用された回答
その他の回答 (1 件)
Image Analyst
2016 年 9 月 9 日
0 投票
Have you tried sscanf() or str2double()?
1 件のコメント
Thimiod Athan
2016 年 9 月 9 日
編集済み: Thimiod Athan
2016 年 9 月 9 日
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!