Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I extract the numbers from this string

1 visualización (últimos 30 días)
Zheng
Zheng el 28 de Ag. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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,

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 28 de Ag. de 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'));

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by