segregating a text

2 visualizzazioni (ultimi 30 giorni)
joseph Frank
joseph Frank il 28 Giu 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

Risposta accettata

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

Più risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Text Analytics Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by