Borrar filtros
Borrar filtros

String parsing

2 visualizaciones (últimos 30 días)
skyimager
skyimager el 2 de Jun. de 2012
My text is of the form a='1233.44,56,78,Earth'. Now i want b=1233.44,56,78 and c=Earth. how can i do that?

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Jun. de 2012
lastc = find(a == ',', 1, 'last');
b = a(1:lastc-1);
c = a(lastc+1:end);

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by