Info
This question is closed. Reopen it to edit or answer.
How can I extract the numbers from this string
1 view (last 30 days)
Show older comments
Anyone knows that is there any easy way to extract the numbers from this string?
the string is "JY CME JAPANESE YEN FUTURES SEP13 10157 10315 10149 ---- 10301 +162 162704 10139 77441 171982 DEC13 10"
Many many thanks,
0 Comments
Answers (1)
Andrei Bobrov
on 28 Aug 2013
str = 'JY CME JAPANESE YEN FUTURES SEP13 10157 10315 10149 ---- 10301 +162 162704 10139 77441 171982 DEC13 10';
ns = str2double(regexp(str,'\d*','match'));
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!