segregating a text

1 次查看(过去 30 天)
joseph Frank
joseph Frank 2011-6-28
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

采纳的回答

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

更多回答(1 个)

Fangjun Jiang
Fangjun Jiang 2011-6-28
strread('JPM/GS/UBS-INV-BANK','%s','delimiter','/')

类别

Help CenterFile Exchange 中查找有关 Text Analytics Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by