필터 지우기
필터 지우기

how to change size of a string?

조회 수: 11 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019년 10월 12일
답변: Stephan 2019년 10월 12일
I use regexp(struct(jjj).name,'\_','split'); command to split this structure: K10_5. After being split: {'K10'} I convert it to ordinary array using cell2mat: 'K10'
I realized that 'K10' size is 1*3. How can I make it to be 1*1 not 1*3?

채택된 답변

Stephan
Stephan 2019년 10월 12일
a = 'K10'
b = string(a)
whos

추가 답변 (0개)

카테고리

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