How can extract specific numbers from a string???
Show older comments
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!!!
Accepted Answer
More Answers (1)
Image Analyst
on 9 Sep 2016
0 votes
Have you tried sscanf() or str2double()?
1 Comment
Thimiod Athan
on 9 Sep 2016
Edited: Thimiod Athan
on 9 Sep 2016
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!