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