フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I extract the numbers from this string

1 回表示 (過去 30 日間)
Zheng
Zheng 2013 年 8 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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,

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2013 年 8 月 28 日
str = 'JY CME JAPANESE YEN FUTURES SEP13 10157 10315 10149 ---- 10301 +162 162704 10139 77441 171982 DEC13 10';
ns = str2double(regexp(str,'\d*','match'));

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by