필터 지우기
필터 지우기

Split a string in this way

조회 수: 1 (최근 30일)
Philipp Mueller
Philipp Mueller 2020년 7월 2일
편집: madhan ravi 2020년 7월 2일
Hello,
I have one question. Thank you in advance.
I have several strings like:
  • 0321_s_sdfdstr_dfRidsfnfi_aq2d4000_t23q3_f3s
  • 01_s_dstr_4000_t23q3_v0322_l000_
How can i split these strings after "_" to get an array like:
0321
s
dstr
4000
t23q3
v0322
I000

답변 (1개)

madhan ravi
madhan ravi 2020년 7월 2일
편집: madhan ravi 2020년 7월 2일
strsplit(STRING,'_')
%or
regexp(STRING, '\_', 'split')

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by