segregating a text

4 visualizaciones (últimos 30 días)
joseph Frank
joseph Frank el 28 de Jun. de 2011
I have a char array where the content is mainly simila to this format 'JPM/GS/UBS-INV-BANK'
is it possible to separate the names where the separator "/" would be used to separate the names to obtain : JPM then GS then UBS-INV-BANK

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Jun. de 2011
regexp('JPM/GS/UBS-INV-BANK','/', 'split')

Más respuestas (1)

Fangjun Jiang
Fangjun Jiang el 28 de Jun. de 2011
strread('JPM/GS/UBS-INV-BANK','%s','delimiter','/')
  1 comentario
Walter Roberson
Walter Roberson el 28 de Jun. de 2011
or textscan() with the same parameters.

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings 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