Split a string in this way

1 visualización (últimos 30 días)
Philipp Mueller
Philipp Mueller el 2 de Jul. de 2020
Editada: madhan ravi el 2 de Jul. de 2020
Hello,
I have one question. Thank you in advance.
I have several strings like:
  • 0321_s_sdfdstr_dfRidsfnfi_aq2d4000_t23q3_f3s
  • 01_s_dstr_4000_t23q3_v0322_l000_
How can i split these strings after "_" to get an array like:
0321
s
dstr
4000
t23q3
v0322
I000

Respuestas (1)

madhan ravi
madhan ravi el 2 de Jul. de 2020
Editada: madhan ravi el 2 de Jul. de 2020
strsplit(STRING,'_')
%or
regexp(STRING, '\_', 'split')

Categorías

Más información sobre Data Type Conversion 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