Borrar filtros
Borrar filtros

How to parse a string like this?

1 visualización (últimos 30 días)
Amir
Amir el 20 de Feb. de 2014
Editada: Amir el 20 de Feb. de 2014
Hi everyone,
I am reading a set of strings from a text file as shown below. I want to save the numbers in BOLD extracted and stored in a matrix. How can I do that?
"JJJ--14-211 k812 YOU1, -1, 3, 12 , 551 , 853 , 00 , 876 , 6.5 , 0.00112 , 11 , 412.31 ,"
In fact, I want to know how can I discard the part before the first number in BOLD and also remove the commas and store the numbers in a row vector?
Thank you

Respuestas (0)

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by