segregating a text

1 vue (au cours des 30 derniers jours)
joseph Frank
joseph Frank le 28 Juin 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

Réponse acceptée

Walter Roberson
Walter Roberson le 28 Juin 2011
regexp('JPM/GS/UBS-INV-BANK','/', 'split')

Plus de réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by