segregating a text

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

 Accepted Answer

regexp('JPM/GS/UBS-INV-BANK','/', 'split')

More Answers (1)

Fangjun Jiang
Fangjun Jiang on 28 Jun 2011

0 votes

strread('JPM/GS/UBS-INV-BANK','%s','delimiter','/')

1 Comment

or textscan() with the same parameters.

Sign in to comment.

Categories

Find more on Text Analytics Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!