segregating a text

1 Ansicht (letzte 30 Tage)
joseph Frank
joseph Frank am 28 Jun. 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

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Text Analytics Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by