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 日

0 投票

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

その他の回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2011 年 6 月 28 日

0 投票

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

1 件のコメント

Walter Roberson
Walter Roberson 2011 年 6 月 28 日
or textscan() with the same parameters.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Characters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by