I want to convert a cell of string into another like this. How can i do this? Thanks!
from hi.PNG into ba.PNG

 채택된 답변

Walter Roberson
Walter Roberson 2019년 3월 3일

0 개 추천

temp = regexp(s, '(?<=\S)\s+', 'split');
s = vertcat(temp{:});

댓글 수: 1

Mai Le Thai
Mai Le Thai 2019년 3월 3일
Thanks for your help!
Can you please explain this '(?<=\S)\s+'?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

2019년 3월 3일

댓글:

2019년 3월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by