HOW I CAN REMOVE THE SPACE
이전 댓글 표시
how i can remove the spacing from strings like this
i have this string ( STEP NOT OF PETS ) and i want it to be like this ( STEPNOTOFPETS )
댓글 수: 2
Walter Roberson
2019년 6월 23일
Character vector? Or string() object?
ahmad abusara
2019년 6월 23일
답변 (2개)
madhan ravi
2019년 6월 23일
regexprep(yourstring,' ','')
댓글 수: 1
madhan ravi
2019년 6월 23일
Also you could use strrep() in place of regexprep().
Walter Roberson
2019년 6월 23일
yourstring(yourstring == ' ') = '' ;
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!